dancras / groundwork
CLI tool for code generation from templates
1.0.0
2013-03-11 00:50 UTC
Requires
- php: >=5.3.0
- symfony/console: *
Requires (Dev)
This package is not auto-updated.
Last update: 2024-12-21 14:48:08 UTC
README
CLI tool for code generation from templates.
Rather than providing code generation of classes to someone elses standard, groundwork gives you a tool to set up and use your own project specific code generation templates.
Install with composer.
{
"require-dev": {
"dancras/groundwork": "*"
}
}
Add a .groundwork folder to your project. Each subfolder is a groundwork "template". The only requirement is a run.php file.
To generate the code:
vendor/bin/groundwork create %template% "%fully qualified class%"
See the .groundwork folder of this project for a class generation example. Clone the project and try it out:
bin/groundwork create class "MyVendor\MyProject\MyClass"