recompilr:运行时类编译器

重新编译器PHP 5.5+工厂运行时类编译器描述recompilr使用类定义并在运行时使用eval和唯一的哈希标识符重新编译它。对类定义进行更改后,可以重新编译类,而无需重新启动应用程序。这有效地允许应用程序在运行时重新声明类。安装使用通过cli安装: php composer.phar require jgswift/recompilr:0.1. *使用通过composer.json安装: { " require " : { " jgswift/recompilr " : " 0.1.* " } }依赖php 5.5+用法基本编译和实例化// # path/to/FooClass.php class FooClass { /* */ } // compiles FooClass from given
zip
recompilr-master.zip 预估大小:28个文件
folder
recompilr-master 文件夹
file
composer.json 771B
file
.travis.yml 366B
file
.scrutinizer.yml 992B
file
.travis.composer.config.json 445B
folder
tests 文件夹
file
bootstrap.php 259B
file
RecompilrTestCase.php 567B
file
CompileTest.php 5KB
folder
Mock 文件夹
file
BlankClass2.php 102B
file
BlankClass.php 102B
file
OtherClass.php 65B
file
BlankBase.php 73B
file
LICENSE 1KB
folder
src 文件夹
folder
Compiler 文件夹
file
ClassCompiler.php 5KB
file
ClassRegistry.php 2KB
file
AggregateCompiler.php 5KB
file
CompilerBinary.php 3KB
file
CompilerInterface.php 968B
file
ClassMapping.php 7KB
file
fnGlobalAlias.php 160B
file
Recompiler.php 1KB
file
Exception.php 85B
folder
Binary 文件夹
file
AggregateBinary.php 1KB
file
BinaryInterface.php 499B
file
PharBinary.php 2KB
file
fn.php 2KB
file
.gitignore 20B
file
phpunit.xml.dist 878B
file
README.md 3KB
zip 文件大小:17.33KB