2017 © Pedro Peláez
 

library code-generator

Zend Framework 2 (ZF2) code generator which generates form and input filter depending on database or doctrine 2 meta data.

image

sandrokeil/code-generator

Zend Framework 2 (ZF2) code generator which generates form and input filter depending on database or doctrine 2 meta data.

  • Wednesday, March 16, 2016
  • by sandrokeil
  • Repository
  • 3 Watchers
  • 1 Stars
  • 63 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Code generator for Zend Framework 2

You want to concentrate on the important things in your project and do not waste time with standard goodies?, (*1)

You want surefire input filter and forms depending on your database or doctrine 2 meta data?, (*2)

You want forms and input filter that are universally used and combined?, (*3)

This module comes to the rescue!, (*4)

Build Status Scrutinizer Code Quality Coverage Status HHVM Status SensioLabsInsight Latest Stable Version Dependency Status Total Downloads License, (*5)

Zend Framework 2 code generator which generates form and input filter depending on database or doctrine 2 meta data. Create new forms and input filter in seconds with your namespace and parent class., (*6)

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org., (*7)

Put the following into your composer.json, (*8)

{
    "require": {
        "sandrokeil/code-generator": "dev-master"
    }
}

Then add Sake\CodeGenerator to your ./config/application.config.php., (*9)

Documentation

Console Doctrine 2

Before you can use these doctrine commands please make sure you have enabled and configured your cli-config.php for doctrine. For a common example see cli-config.php of this repository., (*10)

zf:generate-form [--filter="..."] [--force] [--from-database] [--extend[="..."]] [--namespace[="..."]] [--num-spaces[="..."]] dest-path

Console Zend Framework 2

Generated Classes

At the moment the following classes can be generated:, (*11)

  • ZF2 Form Fieldsets (Collections)
  • ZF2 Input Filter

Known limitations

Unfortunately is it necessary to change some generated code lines by yourself, because some information is currently missing to make some classes working out of the box., (*12)

Form Fieldsets (Collections)

If you have relations (foreign keys) defined in your entities the \DoctrineModule\Persistence\ObjectManagerAwareInterface must be implemented by yourself. Additionally you must set property option for the name of the text which should be displayed in select box., (*13)

The Versions

16/03 2016

dev-master

9999999-dev https://github.com/sandrokeil/CodeGenerator

Zend Framework 2 (ZF2) code generator which generates form and input filter depending on database or doctrine 2 meta data.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

form code zf2 generator zend framework doctrine entity code generator input filter inputfilter