GithubHelp home page GithubHelp logo

carlossing / codegenerator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sandrokeil/codegenerator

0.0 0.0 0.0 26 KB

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

License: Other

PHP 100.00%

codegenerator's Introduction

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?

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

You want forms and input filter that are universally used and combined?

This module comes to the rescue!

Build Status Scrutinizer Code Quality Coverage Status HHVM Status SensioLabsInsight Latest Stable Version Dependency Status Total Downloads License

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.

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

Put the following into your composer.json

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

Then add Sake\CodeGenerator to your ./config/application.config.php.

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.

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:

  • 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.

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.

codegenerator's People

Contributors

dzoudzou avatar sandrokeil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.