This tool generates entities and form data for your applications. It is built on PHP 8.3 and provides a simple interface for creating classes and using them in your projects.
- PHP 8.3 or higher
- composer
composer require drago-ex/generator
extensions:
generator: Drago\Generator\DI\GeneratorExtension
All settings of entities and data form can be found in Options.php
https://github.com/drago-ex/generator/blob/master/src/Drago/Generator/Options.php#L19
Command | Description |
---|---|
make:entity |
Generates all entities. |
make:entity table |
Generates one entity according to the table name. |
make:dataClass |
Generates all form data. |
make:dataClass table |
Generates one form data according to the table name. |