naxel/classes-generator

Generate classes from json

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

This package is not auto-updated.

Last update: 2024-12-03 08:42:23 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();