Developed with love by KnpLabs Hire us for your project!
99

CrudGeneratorBundle

by jordillonch

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

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.

Copyright (c) 2012 Jordi Llonch

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
jordi_llonch_crud_generator:  []
  • update composer.json in order to work with symfony 2.6.x
    By jordillonch, 2 years ago
  • update lexik/form-filter-bundle to 3.0
    By jordillonch, 3 years ago
  • fix tests
    By jordillonch, 3 years ago
  • fix tests
    By jordillonch, 3 years ago
  • update to symfony 2.5
    By jordillonch, 3 years ago
  • Merge pull request #29 from bieli/master
    By jordillonch, 3 years ago
  • fixing polish translation for SHOW on action listings
    By , 3 years ago
  • Merge pull request #27 from jordillonch/CrudGeneratorBundle-26
    By jordillonch, 3 years ago
  • fix FormType and FormFilterType in the Form directory are never overwritten
    By jordillonch, 3 years ago
  • update to symfony 2.4
    By jordillonch, 3 years ago
  • Merge pull request #22 from ageusz/patch-1
    By jordillonch, 4 years ago
  • Polish translation
    By ageusz, 4 years ago
  • fix tests
    By jordillonch, 4 years ago
  • Fix on getSkeletonDirs method because an update in sensio generator
    By jordillonch, 4 years ago
  • Fixes from SensioLabsInsight
    By jordillonch, 4 years ago
  • Fixes from SensioLabsInsight
    By jordillonch, 4 years ago
  • readme updated
    By jordillonch, 4 years ago
  • composer.lock added
    By jordillonch, 4 years ago
  • readme updated
    By jordillonch, 4 years ago
  • gitignore updated
    By jordillonch, 4 years ago
  • fix use of put and delete methods
    By jordillonch, 4 years ago
  • improve dependencies for 2.3
    By ricardclau, 4 years ago
  • Merge pull request #15 from ternel/master
    By jordillonch, 4 years ago
  • Index: Filter button moved before Reset button
    By ternel, 4 years ago
  • Fix filters: POST -> GET
    By ternel, 4 years ago
  • Merge pull request #14 from ternel/master
    By jordillonch, 4 years ago
  • Fix Record Actions skeleton - Add _method input for delete form
    By ternel, 4 years ago
  • Merge pull request #13 from ternel/master
    By jordillonch, 4 years ago
  • Add french translations
    By ternel, 4 years ago
  • Fix Edit skeleton - Add _method input
    By ternel, 4 years ago