EntityGenerator will help you to create the models/entities that you require for your application.
If your IDE is not supportive enough, you can simply copy paste your table columns in here., (*1)
Installation
composer require driessenstijn/EntityGenerator/
Why use EntityGenerator?
Well, if your IDE is not supportive enough you must have something else to do the dirty work., (*2)
How to use
It's simple:
- Type: EXPLAIN, (*3)
<, (*4)
table> in your MySQL Workbench
- Copy the columns of name and type to your clipboard
- Paste your clipboard and enter your table name in the form
- Enjoy the file content that needs to be created, (*5)
Usage example
require_once __DIR__ . '/../vendor/autoload.php';
use EntityGenerator\EntityGenerator;
The Versions
07/032016
dev-master
9999999-dev
This is a simple form that will give you the necessary files that you need for entities, such as a zf2 application