phpfit / source-generator
Source generator based on provided configs
1.0.2
2025-08-23 06:09 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Generate php source code based on provided configs. This module is not yet completed.
Installation
composer require phpfit/source-generator
Usage
<?php use PhpFit\SourceGenerator\Generator; $array = [ 'string' => 'string', 'escape' => 'do\'a', 'integer' => 12, 'float' => 12.33 ]; $source = Generator::array($array);
TODO
- Rewrite function
- Recreate object class
- Shorten inline array
- Class writer
License
The phpfit/source-generator library is licensed under the MIT license. See License File for more information.