naxel/classes-generator

Generate classes from json

dev-master 2014-08-12 15:20 UTC

This package is not auto-updated.

Last update: 2022-08-15 22:16:26 UTC


README

Build Status

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();