corelib / coregen
There is no license information available for the latest version (dev-master) of this package.
Coregen is a tool to generates corelib models and data classes.
dev-master
2016-05-30 21:01 UTC
Requires
- twig/twig: 1.*
- webtrendi/clapp: 1.*
This package is not auto-updated.
Last update: 2024-11-23 16:36:45 UTC
README
Coregen generates corelib files in a consistent way.
Install
Install dependencies using composer
$composer install
Create a config.php in the includes dir see sampleConfig.php in that folder
How to use it
To generate files you go through the run
$ ./corelibgen.php --name User --dir ~/projects/myapp/lib/MyApp/ --namespace "\MyApp\User" --table user
Created /home/someuser/projects/myapp/lib/MyApp/User/Model/UserCollection.php
Created /home/someuser/projects/myapp/lib/MyApp/User/Model/UserBO.php
Created /home/someuser/projects/myapp/lib/MyApp/User/UserFactory.php
Created /home/someuser/projects/myapp/lib/MyApp/User/Data/UserDAOInterface.php
Created /home/someuser/projects/myapp/lib/MyApp/User/Data/UserDAOMySQL.php
Created /home/someuser/projects/myapp/lib/MyApp/User/Data/UserDSOInterface.php
Created /home/someuser/projects/myapp/lib/MyApp/User/Data/UserDSOMySQL.php