Download the PHP package staempfli/universal-code-generator without Composer
On this page you can find all versions of the php package staempfli/universal-code-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download staempfli/universal-code-generator
More information about staempfli/universal-code-generator
Files in staempfli/universal-code-generator
Package universal-code-generator
Short Description Staempfli AG - Universal Code Generator Tool
License GPL-3.0
Informations about the package universal-code-generator
Universal Code Generator Tool
This tool can be used as base for creating code generators for specific frameworks
Usage
-
Create your own generator project:
- Check an example here: magento2-code-generator
-
Add this project as dependency
-
Copy needed default configuration file
$ cp vendor/staempfli/universal-code-generator/config/default-properties.yml.dist config/default-properties.yml
-
You need to create a PHP script to define the console application:
-
We recommend to do that into the
bin
foldercd bin && vim <command_name>
- Add the following content to this file:
-
-
Usually you might want to extend the default
template:generate
command. You can do that as follows:- Extend Template Generate Command
-
Create the templates that will be generated:
- How to create templates
Prerequisites
- PHP >= 5.6.*
Developers
Licence
GNU General Public License, version 3 (GPLv3)
Copyright
(c) 2016 Staempfli AG