Download the PHP package idimensionz/entity-generator-bundle without Composer
On this page you can find all versions of the php package idimensionz/entity-generator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package entity-generator-bundle
iDimensionz Doctrine Entity Generator
Symfony service and console command that does a simple reverse engineer of MySQL tables into entity classes.
Join the entity-generator channel on iDimensionz's Community Slack to ask questions, share tips and meet others using this software.
Configuration
-
Add the following to registerBundles() in your kernel:
-
Add the following to services.yml:
- Add "%kernel.project_dir%/vendor/idimensionz/entity-generator-bundle/templates" to your twig.paths in config.yml.
- Profit!
How to Run the Console Command
The console command take 3 parameters:
- schema-name
- table-name
- entity-class-name
Here's an example of how you would create an entity class for the COLUMNS table in the MySQL information_schema database:
The command will output the class code to the screen where you can copy and paste it into your favorite IDE.
Note: If using PhpStorm, you can easily generate getters and setters with PHP 7 parameter and return value type-hinting as well as doc blocks.
To-Do
We'd like to implement the following improvements. Feel free to submit a PR if you want to help out with these.
- Add twig blocks to the template to make it easier to customize certain sections.
- Add the ability to specify a bundle where the entity file would be created.
All versions of entity-generator-bundle with dependencies
ext-ctype Version *
ext-iconv Version *
doctrine/doctrine-bundle Version ^1.9
doctrine/orm Version ^2.6
symfony/cache Version ^3.4|^4.4
symfony/config Version ^3.4|^4.4
symfony/console Version ^3.4|^4.4
symfony/debug Version ^3.4|^4.4
symfony/dependency-injection Version ^3.4|^4.4
symfony/doctrine-bridge Version ^3.4|^4.4
symfony/dotenv Version ^3.4|^4.4
symfony/event-dispatcher Version ^3.4|^4.4
symfony/filesystem Version ^3.4|^4.4
symfony/finder Version ^3.4|^4.4
symfony/flex Version ^1.1
symfony/framework-bundle Version ^3.4|^4.4
symfony/http-foundation Version ^3.4|^4.4
symfony/http-kernel Version ^3.4|^4.4
symfony/routing Version ^3.4|^4.4
symfony/symfony Version ^3.4|^4.4
symfony/twig-bridge Version ^3.4|^4.4
symfony/twig-bundle Version ^3.4|^4.4
symfony/yaml Version ^3.4|^4.4
twig/twig Version ^2.5