mensagemsei / doctrine-generator
Generator to Doctrine ORM 2
Installs: 115
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
pkg:composer/mensagemsei/doctrine-generator
Requires
- php: >=5.4
- doctrine/orm: v2.6.3
This package is auto-updated.
Last update: 2025-09-11 01:36:37 UTC
README
A PHP package customized to generate entity and repository classes of a project that uses Doctrine ORM in a command-line interface.
Installation
composer require mensagemsei/doctrine-generator --dev
Usage
Before, you need create a PHP file named generator.php with the following code:
require_once 'vendor/autoload.php'; // TODO: Add an instance of the EntityManager and assigns in a variable named $em Generator\Application::run($em);
To view a list of all available commands, you may use the list command:
php generator.php list
To view all arguments and options, you may use the help command:
php generator.php doctrine:generate --help