GithubHelp home page GithubHelp logo

sinner / crudgeneratorbundle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jordillonch/crudgeneratorbundle

0.0 2.0 0.0 381 KB

This Symfony2 bundle aims to be the bundle that you are looking for create a nice CRUD with pagination, filter, translation and Twitter bootstrap 2.2.2 features.

License: MIT License

PHP 37.73% CSS 0.70% HTML 61.58%

crudgeneratorbundle's Introduction

CrudGeneratorBundle

This Symfony2 bundle aims to be the bundle that you are looking for create a nice CRUD with pagination, filter, translation and Twitter bootstrap 2.2.2 features.

This bundle is inspired in an article wrote by Ricard Clau: Extending SensioGeneratorBundle for our Admin Areas

Build Status

Screenshot

Screenshot

Why use a CRUD generator?

Well, because CRUD generator creates simple code, no magic, no configuration files, just simple and plain code that you can extend and modify easily.

Installation

Using composer

Add following lines to your composer.json file:

Symfony >= 2.5

"require": {
  ...
  "jordillonch/crud-generator": "dev-master"
},

Symfony 2.4

"require": {
  ...
  "jordillonch/crud-generator": "2.4.*"
},

Symfony 2.3

"require": {
  ...
  "jordillonch/crud-generator": "2.3.*"
},

Symfony 2.2

"require": {
  ...
  "jordillonch/crud-generator": "2.2.*"
},
"minimum-stability": "dev",

Symfony 2.1

"require": {
  ...
  "jordillonch/crud-generator": "2.1.*"
},
"minimum-stability": "dev",

Execute:

php composer.phar update

Add it to the AppKernel.php class:

new Lexik\Bundle\FormFilterBundle\LexikFormFilterBundle(),
new JordiLlonch\Bundle\CrudGeneratorBundle\JordiLlonchCrudGeneratorBundle(),

Add it to your app/config/config.yml

framework:
    translator: { fallback: en }

twig:
    form:
        resources:
            - LexikFormFilterBundle:Form:form_div_layout.html.twig

This bundle works on Symfony 2.1, 2.2, 2.3, 2.4 and >= 2.5 version.

Dependencies

This bundle extends SensioGeneratorBundle and add a paginator using PagerFanta and filter support using LexikFormFilterBundle.

Usage

Use following command from console:

app/console jordillonch:generate:crud

As you will see there is no config file. You will generate a CRUD code with all fields from your entity. But after code generation you are free to modify the code because there is no magic just a simple code that is very easy to understand.

You have to know that if you reuse the command to recreate same entity, first you must delete controller and form files from previous generation.

Author

Jordi Llonch - llonch.jordi at gmail dot com

Translation support

Gonzalo Alonso - gonkpo at gmail dot com

License

CrudGeneratorBundle is licensed under the MIT License. See the LICENSE file for full details.

crudgeneratorbundle's People

Contributors

bieli avatar cachorios avatar codevalar avatar dyktek avatar gonzaloalonsod avatar jordillonch avatar l-vo avatar luizsoliveira avatar magi2c avatar ricardclau avatar sp-roger-clotet avatar ternel avatar

Watchers

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