dbstudios / code-generator
A library that allows easy generation and modification of PHP source files
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dbstudios/code-generator
This package is auto-updated.
Last update: 2025-09-19 12:00:38 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).