2017 © Pedro Peláez
 

symfony-bundle crud-generator-bundle

Symfony3 bundle for CRUD generation with pagination, filtering, sorting, page size, bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

image

petkopara/crud-generator-bundle

Symfony3 bundle for CRUD generation with pagination, filtering, sorting, page size, bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

  • Sunday, September 10, 2017
  • by petkopara
  • Repository
  • 13 Watchers
  • 67 Stars
  • 16,220 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 18 Forks
  • 26 Open issues
  • 20 Versions
  • 20 % Grown

The README.md

CrudGeneratorBundle

Symfony3 CRUD generator bundle with pagination, filtering, Twitter bootstrap 3.3.6 markup and many other features. It's Simple to use and fully customizable., (*1)

Designed to bring back the functionality of the old Symfony 1.4 admin generator, but extending from SensioGeneratorBundle with additional options and features., (*2)

Build Status SensioLabsInsight Latest Stable Code Coverage Scrutinizer Code Quality Total Downloads, (*3)

Features

  • Pagination - using PagerFanta
  • Filtering (With single multi search input or form)
  • Doctrine association mapping support for Many-to-One, One-to-One and Many-to-Many (if the relation is the owning side) in forms and filters
  • Sorting
  • Items per page
  • Bulk actions(delete) on multiple rows
  • Delete from index
  • Set your base template in the generated views.
  • Possibility to set the save path for all the generated files (by default in app/Resources).
  • Possiblity to not generate show code.
  • Most of the features are optional and you can generate the CRUD very flexible depending on your needs.

Screenshots

Multi Search Filter

Screenshot, (*4)

Form Filter

Screenshot, (*5)

Installation

This bundle is compatible with Symfony 2.8/3.0 or higher., (*6)

Using composer

Symfony >= 2.8

composer require petkopara/crud-generator-bundle

Register the CRUD and filter bundles in your AppKernel.php:, (*7)

new Lexik\Bundle\FormFilterBundle\LexikFormFilterBundle(),
new Petkopara\MultiSearchBundle\PetkoparaMultiSearchBundle(),
new Petkopara\CrudGeneratorBundle\PetkoparaCrudGeneratorBundle(),

Install the assets., (*8)

php bin/console assets:install --symlink

For the bootstrap theme of the forms, add this to your app/config/config.yml, (*9)

twig:
    form_themes:
    - 'bootstrap_3_layout.html.twig' 

Optionally if you are using your own base template, be sure that you include the javascript file of the bundle in it., (*10)

<script src="{{ asset('bundles/petkoparacrudgenerator/js/petkopara-crud-generator.js') }}"></script>

Dependencies

This bundle extends SensioGeneratorBundle. Pagination with PagerFanta . For the filtering is used PetkoparaMutiSearchBundle and LexikFormFilterBundle., (*11)

Usage

Use the following command from console:, (*12)

php bin/console petkopara:generate:crud

And follow the wizard steps., (*13)

Available new options

The default behavior of the bundle is to generate full featured crud, but you can customize what to be generated or not. The bundle adds few new parameters compared to the doctrine crud generator, to control all of the new features., (*14)

  • --filter-type - Which filter type to use. There is three options:, (*15)

    • input - To use Multi Search input.
    • form - To use Lexik form filter.
    • none - Will not generate any filter code.
  • --template - The base template name, which the views will override. For example set it to --template=base.html.twig to extends your base template.(by default PetkoparaCrudGeneratorBundle::base.html.twig)., (*16)

  • --without-write - The default behavior of the bundle is to generate write code, so for that --with-write option is transformed to this., (*17)

  • --without-show - Many times you don't need show code, for that this option is introduced., (*18)

  • --without-sorting - To not generate sorting code., (*19)

  • --without-page-size - To not generate items per page code., (*20)

  • --without-bulk - To not generate bulk actions code., (*21)

  • --bundle-views - Whether to store the view files in the bundles dir. By default the vies are stored in app/Resources/views/ ., (*22)

Don't forget, that this is a just crud generator and you are free to change everything generated from this bundle., (*23)

Templates

Every generated file is based on a template. There are default templates but they can be overridden by placing custom templates in one of the following locations, by order of priority:, (*24)

BUNDLE_PATH/Resources/PetkoparaCrudGeneratorBundle/skeleton/crud
APP_PATH/Resources/PetkoparaCrudGeneratorBundle/skeleton/crud

And, (*25)

BUNDLE_PATH/Resources/PetkoparaCrudGeneratorBundle/skeleton/form
APP_PATH/Resources/PetkoparaCrudGeneratorBundle/skeleton/form

Author

Petko Petkov - petkopara at gmail dot com, (*26)

License

CrudGeneratorBundle is licensed under the MIT License., (*27)

The Versions

10/09 2017

dev-master

9999999-dev

Symfony3 bundle for CRUD generation with pagination, filtering, sorting, page size, bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter bootstrap3 crud generator doctrine symfony3 pagination bulk sorting page size

08/05 2017

v3.0.6.x-dev

3.0.6.9999999-dev

Symfony3 bundle for CRUD generation with pagination, filtering, sorting, page size, bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter bootstrap3 crud generator doctrine symfony3 pagination bulk sorting page size

05/03 2017

v3.0.5

3.0.5.0

Symfony3 bundle for CRUD generation with pagination, filtering, sorting, page size, bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter bootstrap3 crud generator doctrine symfony3 pagination bulk sorting page size

17/12 2016

v3.0.4

3.0.4.0

Symfony3 bundle for CRUD generation with pagination, filtering, sorting, page size, bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter bootstrap3 crud generator doctrine symfony3 pagination bulk sorting page size

18/11 2016

v3.0.3

3.0.3.0

Symfony3 bundle for CRUD generation with pagination, filtering, sorting, page size, bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter bootstrap3 crud generator doctrine symfony3 pagination bulk sorting page size

11/11 2016

v3.0.2

3.0.2.0

Symfony3 bundle for CRUD generation with pagination, filtering, sorting, page size, bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter bootstrap3 crud generator doctrine symfony3 pagination bulk sorting page size

03/11 2016

v3.0.1

3.0.1.0

Symfony3 bundle for CRUD generation with pagination, filtering, sorting, page size, bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter bootstrap3 crud generator doctrine symfony3 pagination bulk sorting page size

03/11 2016

v3.0.0

3.0.0.0

Symfony3 bundle for CRUD generation with pagination, filtering, sorting, page size, bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter bootstrap3 crud generator doctrine symfony3 pagination bulk

02/11 2016

2.1.x-dev

2.1.9999999.9999999-dev

Symfony3 bundle for CRUD generation with pagination, filtering bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter bootstrap3 crud generator doctrine symfony3 pagination bulk

30/09 2016

v2.0.5

2.0.5.0

Symfony3 bundle for CRUD generation with pagination, filtering bulk delete and bootstrap3 markup. This Generator supports Doctrine association mapping.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter bootstrap3 crud generator doctrine symfony3 pagination bulk

28/09 2016

v2.0.4

2.0.4.0

Symfony3 bundle for CRUD generation with pagination, filtering bulk delete and bootstrap3 markup

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter crud generator symfony3 pagination

26/09 2016

v2.0.3

2.0.3.0

Symfony3 bundle for CRUD generation with pagination, filtering bulk delete and bootstrap3 markup

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter crud generator symfony3 pagination

20/09 2016

v2.0.2

2.0.2.0

Symfony3 bundle for CRUD generation with pagination, filtering bulk delete and bootstrap3 markup

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter crud generator symfony3 pagination

15/09 2016

v2.0.1

2.0.1.0

Symfony3 bundle for CRUD generation with pagination, filtering bulk delete and bootstrap3 markup

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter crud generator symfony3 pagination

14/09 2016

v2.0.0

2.0.0.0

Symfony3 bundle for CRUD generation with pagination, filtering bulk delete and bootstrap3 markup

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter crud generator symfony3 pagination

14/09 2016

2.0.x-dev

2.0.9999999.9999999-dev

Symfony3 bundle for CRUD generation with pagination, filtering bulk delete and bootstrap3 markup

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter crud generator symfony3 pagination

14/05 2016

1.0.3

1.0.3.0

Symfony3 bundle for CRUD generation with pagination, filtering bulk delete and bootstrap3 markup

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter crud generator symfony3 pagination

07/05 2016

1.0.2

1.0.2.0

Symfony3 bundle for CRUD generation with pagination, filtering bulk delete and bootstrap3 markup

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter crud generator symfony3 pagination

07/05 2016

1.0.1

1.0.1.0

Symfony3 bundle for CRUD generation with pagination, filtering bulk delete and bootstrap3 markup

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

filter crud generator symfony3 pagination

07/05 2016

v1.0.0

1.0.0.0

Flexible bundle for CRUD generation

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petko Petkov

crud generator