dbstudios / code-generator
A library that allows easy generation and modification of PHP source files
0.3.0
2018-01-03 14:17 UTC
This package is auto-updated.
Last update: 2024-12-19 10:17:51 UTC
README
$ composer require dbstudios/code-generator
Usage
All components support a setTargetPHPVersion()
method, which can be used to specify the
PHP Version ID that the generated code will
run on.
<?php use DaybreakStudios\CodeGenerator\Member\Property\PropertyGenerator; $property = new PropertyGenerator('myProp'); $property->setVersion(50627);
In the above example, the generated property will be compatible with PHP 5.6.27 (and higher, wherever possible).