Generate php source code based on provided configs. This module is not yet completed.
composer require phpfit/source-generator
<?php
use PhpFit\SourceGenerator\Generator;
$array = [
'string' => 'string',
'escape' => 'do\'a',
'integer' => 12,
'float' => 12.33
];
$source = Generator::array($array);
- Rewrite function
- Recreate object class
- Shorten inline array
- Class writer
The phpfit/source-generator library is licensed under the MIT license. See License File for more information.