2017 © Pedro Peláez
 

symfony-bundle crud-generator

This bundle generates code cute for you

image

mwsimple/crud-generator

This bundle generates code cute for you

  • Wednesday, October 12, 2016
  • by gonzakpo
  • Repository
  • 9 Watchers
  • 15 Stars
  • 2,344 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 3 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

CrudGeneratorBundle

This bundle generates code cute you extending SensioGeneratorBundle using KnpPaginatorBundle and Boostrap Templates., (*1)

Installation

Using composer

Add following lines to your composer.json file:, (*2)

Symfony 2.3.9 + Include Boostrap 3

"require": {
    ...
    "mwsimple/crud-generator": "v2.3.9"
}

Symfony > 2.3.6 + Include Boostrap 2

"require": {
    ...
    "mwsimple/crud-generator": "dev-2.3-bootstrap2"
}

Symfony 2.3.3

"require": {
    ...
    "mwsimple/crud-generator": "v2.3.3"
}

Symfony 2.3.1 - 2.3.2

"require": {
    ...
    "mwsimple/crud-generator": "v2.3.2"
}

Execute:, (*3)

php composer.phar update "mwsimple/crud-generator"

Add it to the AppKernel.php class:, (*4)

    // ...
    new MWSimple\Bundle\CrudGeneratorBundle\MWSimpleCrudGeneratorBundle(),
    new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
    new Lexik\Bundle\FormFilterBundle\LexikFormFilterBundle(),

Configuration paginator example

You can configure config.yml default query parameter names and templates, (*5)

    knp_paginator:
        page_range: 5                      # default page range used in pagination control
        default_options:
            page_name: page                # page query parameter name
            sort_field_name: sort          # sort field query parameter name
            sort_direction_name: direction # sort direction query parameter name
            distinct: true                 # ensure distinct results, useful when ORM queries are using GROUP BY statements
        template:
            pagination: KnpPaginatorBundle:Pagination:twitter_bootstrap_v3_pagination.html.twig # bootstrap 3 sliding pagination controls template
            sortable: KnpPaginatorBundle:Pagination:sortable_link.html.twig # sort link template

Configuration filter example

You can configure config.yml find Twig Configuration, (*6)

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

Configure translations (include en, es, ca)

You can configure config.yml, (*7)

    framework:
        ...
        translator:      { fallback: %locale% } # uncomment line

Install assets

app/console assets:install

Dependencies

This bundle extends SensioGeneratorBundle and add a paginator using KnpPaginatorBundle and filter using LexikFormFilterBundle ., (*8)

Usage

Use following command from console:, (*9)

app/console mwsimple:generate:crud

Author

Gonzalo Alonso - gonkpo@gmail.com, (*10)

Bootstrap 3

Tito Canteros - titocanteros@gmail.com, (*11)

., (*12)

The Versions

12/10 2016

v2.3.10.x-dev

2.3.10.9999999-dev https://github.com/MWSimple/CrudGeneratorBundle

This bundle generates code cute for you

  Sources   Download

MIT

The Requires

 

by Gonzalo Alonso

bootstrap crud generator

12/10 2016

v2.3.10

2.3.10.0 https://github.com/MWSimple/CrudGeneratorBundle

This bundle generates code cute for you

  Sources   Download

MIT

The Requires

 

by Gonzalo Alonso

bootstrap crud generator

09/09 2015

2.7.x-dev

2.7.9999999.9999999-dev https://github.com/MWSimple/CrudGeneratorBundle

This bundle generates code cute for you

  Sources   Download

MIT

The Requires

 

by Gonzalo Alonso

bootstrap crud generator

18/06 2015

dev-master

9999999-dev https://github.com/MWSimple/CrudGeneratorBundle

This bundle generates code cute for you

  Sources   Download

MIT

The Requires

 

by Gonzalo Alonso

bootstrap crud generator

06/06 2015

dev-2.3-bootstrap2

dev-2.3-bootstrap2 https://github.com/MWSimple/CrudGeneratorBundle

This bundle generates code cute for you

  Sources   Download

MIT

The Requires

 

by Gonzalo Alonso

bootstrap crud generator

24/02 2014
09/08 2013
03/08 2013
16/05 2013

2.2.x-dev

2.2.9999999.9999999-dev https://github.com/MWSimple/CrudGeneratorBundle

This bundle generates code cute for you

  Sources   Download

MIT

The Requires

 

by Gonzalo Alonso

bootstrap crud generator