PHPackages                             triton/crud-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. triton/crud-generator

Abandoned → [petkopara/crud-generator-bundle](/?search=petkopara%2Fcrud-generator-bundle)Symfony-bundle[Database &amp; ORM](/categories/database)

triton/crud-generator
=====================

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

v3.0.5(9y ago)701.7k17[25 issues](https://github.com/petkopara/TritonCrudBundle/issues)MITPHP

Since May 7Pushed 5y ago12 watchersCompare

[ Source](https://github.com/petkopara/TritonCrudBundle)[ Packagist](https://packagist.org/packages/triton/crud-generator)[ RSS](/packages/triton-crud-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (20)Used By (0)

CrudGeneratorBundle
===================

[](#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.

Designed to bring back the functionality of the old Symfony 1.4 admin generator, but extending from [SensioGeneratorBundle](https://github.com/sensio/SensioGeneratorBundle) with additional options and features.

[![Build Status](https://camo.githubusercontent.com/5ea3de93b5a8abbe6d946e1dee04ffe887f97d511b3df4ad06d0f6e66ea9da0e/68747470733a2f2f7472617669732d63692e6f72672f7065746b6f706172612f5065746b6f706172614372756447656e657261746f7242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/petkopara/PetkoparaCrudGeneratorBundle)[![SensioLabsInsight](https://camo.githubusercontent.com/129d3b30926d57ccd677a1f0dc73cfe83d2896b14337ea8a3bba870eb17b52df/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f37643234303835612d396132372d343630372d616466352d6566653162623339663632622f6d696e692e706e67)](https://insight.sensiolabs.com/projects/7d24085a-9a27-4607-adf5-efe1bb39f62b)[![Latest Stable](https://camo.githubusercontent.com/0392385b81658f77ecaf4e980766901ec59875644b71e654ceee635bd3a2a053/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7065746b6f706172612f637275642d67656e657261746f722d62756e646c652e7376673f6d61784167653d323539323030303f7374796c653d666c61742d737175617265)](https://packagist.org/packages/petkopara/crud-generator-bundle)[![Code Coverage](https://camo.githubusercontent.com/b09b7c6d4692e72e389c472b4da831a4531b232ec18cc3dbd3121e43aad037a3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7065746b6f706172612f5065746b6f706172614372756447656e657261746f7242756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/petkopara/PetkoparaCrudGeneratorBundle/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7db1d3743f7e988e1d9ea193820e1bc5d3f3324586aea9230f0babe2a1564829/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7065746b6f706172612f5065746b6f706172614372756447656e657261746f7242756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/petkopara/PetkoparaCrudGeneratorBundle/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/fa61912e738d1c569ad411f69f67fc82f007da0bac6f2b156574b460d2370564/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7065746b6f706172612f637275642d67656e657261746f722d62756e646c652e7376673f6d61784167653d323539323030303f7374796c653d666c61742d737175617265)](https://packagist.org/packages/petkopara/crud-generator-bundle)

Features
--------

[](#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
-----------

[](#screenshots)

### Multi Search Filter

[](#multi-search-filter)

[![Screenshot](https://camo.githubusercontent.com/41894878e4b4f461a82549d73c6f234e0431aac46c48664357b588c5698073b2/68747470733a2f2f7261772e6769746875622e636f6d2f7065746b6f706172612f5065746b6f706172614372756447656e657261746f7242756e646c652f6d61737465722f73637265656e73686f745f6d756c74692e706e67 "Screenshot Multi Search")](https://camo.githubusercontent.com/41894878e4b4f461a82549d73c6f234e0431aac46c48664357b588c5698073b2/68747470733a2f2f7261772e6769746875622e636f6d2f7065746b6f706172612f5065746b6f706172614372756447656e657261746f7242756e646c652f6d61737465722f73637265656e73686f745f6d756c74692e706e67)

### Form Filter

[](#form-filter)

[![Screenshot](https://camo.githubusercontent.com/f85f4ddc6805ac0194b1926b57390447823d26e1e33dc944e7b14453e3efae2f/68747470733a2f2f7261772e6769746875622e636f6d2f7065746b6f706172612f5065746b6f706172614372756447656e657261746f7242756e646c652f6d61737465722f73637265656e73686f745f666f726d2e706e67 "Screenshot Form Filter")](https://camo.githubusercontent.com/f85f4ddc6805ac0194b1926b57390447823d26e1e33dc944e7b14453e3efae2f/68747470733a2f2f7261772e6769746875622e636f6d2f7065746b6f706172612f5065746b6f706172614372756447656e657261746f7242756e646c652f6d61737465722f73637265656e73686f745f666f726d2e706e67)

Installation
------------

[](#installation)

This bundle is compatible with Symfony 2.8/3.0 or higher.

### Using composer

[](#using-composer)

#### Symfony &gt;= 2.8

[](#symfony--28)

```
composer require petkopara/crud-generator-bundle

```

Register the CRUD and filter bundles in your `AppKernel.php`:

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

```

Install the assets.

```
php bin/console assets:install --symlink
```

For the bootstrap theme of the forms, add this to your `app/config/config.yml`

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

```

```

Dependencies
------------

[](#dependencies)

This bundle extends [SensioGeneratorBundle](https://github.com/sensio/SensioGeneratorBundle). Pagination with [PagerFanta](https://github.com/whiteoctober/Pagerfanta/) . For the filtering is used [PetkoparaMutiSearchBundle](https://github.com/petkopara/PetkoparaMultiSearchBundle) and [LexikFormFilterBundle](https://github.com/lexik/LexikFormFilterBundle).

Usage
-----

[](#usage)

Use the following command from console:

```
php bin/console petkopara:generate:crud
```

And follow the wizard steps.

### Available new options

[](#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.

- `--filter-type` - Which filter type to use. There is three options:

    - 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).
- `--without-write` - The default behavior of the bundle is to generate write code, so for that `--with-write` option is transformed to this.
- `--without-show` - Many times you don't need show code, for that this option is introduced.
- `--without-sorting` - To not generate sorting code.
- `--without-page-size` - To not generate items per page code.
- `--without-bulk` - To not generate bulk actions code.
- `--bundle-views` - Whether to store the view files in the bundles dir. By default the vies are stored in *app/Resources/views/* .

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

### Templates

[](#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:

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

```

And

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

```

Author
------

[](#author)

Petko Petkov - petkopara at gmail dot com

License
-------

[](#license)

CrudGeneratorBundle is licensed under the MIT License.

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 92.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~44 days

Total

19

Last Release

3288d ago

Major Versions

1.0.3 → 2.0.x-dev2016-09-14

2.1.x-dev → v3.0.02016-11-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b0ad390448f8c74873d5793c2305395a4deb8becae0255639fc0c020e799ed4?d=identicon)[petkopara](/maintainers/petkopara)

---

Top Contributors

[![petkopara](https://avatars.githubusercontent.com/u/2778679?v=4)](https://github.com/petkopara "petkopara (135 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (4 commits)")[![djumaka](https://avatars.githubusercontent.com/u/610488?v=4)](https://github.com/djumaka "djumaka (2 commits)")[![davidpeoples](https://avatars.githubusercontent.com/u/589428?v=4)](https://github.com/davidpeoples "davidpeoples (2 commits)")[![lucagentile](https://avatars.githubusercontent.com/u/4802220?v=4)](https://github.com/lucagentile "lucagentile (1 commits)")[![lbernardxmp](https://avatars.githubusercontent.com/u/31403731?v=4)](https://github.com/lbernardxmp "lbernardxmp (1 commits)")[![MatthieuSarter](https://avatars.githubusercontent.com/u/11583916?v=4)](https://github.com/MatthieuSarter "MatthieuSarter (1 commits)")

---

Tags

bulk-actionscrud-generatorform-filtermulti-searchpaginationsymfonytwitter-bootstrapgeneratordoctrinepaginationfiltercrudsortingbootstrap3symfony3bulkpage-size

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/triton-crud-generator/health.svg)

```
[![Health](https://phpackages.com/badges/triton-crud-generator/health.svg)](https://phpackages.com/packages/triton-crud-generator)
```

###  Alternatives

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

7257.9k](/packages/petkopara-crud-generator-bundle)[webonaute/doctrine-fixtures-generator-bundle

Generate Fixture from your existing data in your database. You can specify the Entity name and the IDs you want to import in your fixture.

67184.1k](/packages/webonaute-doctrine-fixtures-generator-bundle)[jordillonch/crud-generator

This bundle generates a nice CRUD

8351.5k](/packages/jordillonch-crud-generator)[petkopara/multi-search-bundle

Symfony bundle for Multi Criteria Search for doctrine entities using Form or Service.

1766.2k3](/packages/petkopara-multi-search-bundle)[artprima/query-filter-bundle

An easy way to filter requests in your Symfony 4/5/6 application (that uses Doctrine2 as ORM).

2829.6k](/packages/artprima-query-filter-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
