naxel / classes-generator
Generate classes from json
dev-master
2014-08-12 15:20 UTC
Requires
- zendframework/zend-code: >=2.2.2
Requires (Dev)
- squizlabs/php_codesniffer: dev-master
This package is not auto-updated.
Last update: 2024-12-03 08:42:23 UTC
README
Generate classes from json
Run from console:
php classes-generator.php --source=src --destination=classes --namespace=Classes --rootClass=SuperClass -r
Run manualy:
$params = array( 'sourceDir' => 'src', 'destinationDir' => 'classes', 'namespace' => 'Classes', 'rootClassName' => 'SuperClass', 'showRequires' => true, ); $classesGenerator = new ClassesGenerator\Generator($params); $classesGenerator->generate();