pyphp:用于 Python 的 PHP 解析器、编译器和解释器

时间:2021-06-06 18:48:40
【文件属性】:
文件名称:pyphp:用于 Python 的 PHP 解析器、编译器和解释器
文件大小:41KB
文件格式:ZIP
更新时间:2021-06-06 18:48:40
Python pyphp 用于 Python 的 PHP 解析器、编译器和解释器 用法 ###Executing php 代码您可以使用pyphp.executer模块执行 php 代码。 execute_file读取一个 php 文件并执行它,而execute_php执行给定的 php 代码。 要运行 php 脚本: import pyphp . executer pyphp . executer . execute_file ( 'my_php_code.php' ) my_php_code.php 内容: Hello <?php echo "World\n" ; ?> 运行php代码 import pyphp . executer phpcode = r'Hello <?php echo "World.\n"; ?>' ; pyphp . executer . execute_p
【文件预览】:
pyphp-master
----setup.py(326B)
----.gitignore(350B)
----pyphp()
--------errors.py(229B)
--------phpbuiltins()
--------phpclass.py(2KB)
--------executer.py(19KB)
--------phpfunction.py(2KB)
--------__init__.py(0B)
--------compiler.py(35KB)
--------pyphp.py(2KB)
--------coerce.py(964B)
--------phparray.py(3KB)
--------prepr.py(255B)
--------parser.py(15KB)
--------varref.py(4KB)
--------trace.py(2KB)
--------scope.py(1KB)
--------php-grammar.txt(5KB)
--------test()
----LICENSE(1KB)
----CHANGELOG.md(621B)
----README.md(5KB)

网友评论