/crud-from-doctrine

Gerador de formulário a partir da entidade do doctrine

Primary LanguagePHPApache License 2.0Apache-2.0

Crud-from-doctrine

The CrudFromDoctrine is a utility generate code for Zend Framework 2.

Features

  • Create new Controller
  • Create new Controlle APIRest
  • Create new Form based in Doctrine entity
  • Create new Validator for Form based in Doctrine entity

Requiriments

  • Zend Framework 2 or later
  • ZFTools
  • PHP 5.3 or later

Installation using Composer

  1. Open console (command prompt)
  2. Go to your application's directory.
  3. Run composer require mayconvm/crud-from-doctrine:dev-master
  4. Execute the public/index.php as reported below

Usage

Create Controller APIRest

index.php create apirest

The name of the controller The name of the module The path to folder of the ZF2 application (optional)

TODO

  • Create new validator for Form
  • Create folder Model
  • Create new Model
  • Create layout for Form based in Bootstrap
  • Create layout for inputs of Form based in Bootstrap