PHPackages                             cpana/generator-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cpana/generator-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

cpana/generator-bundle
======================

Extension of PUGXSensioGeneratorBundle and SensioGeneratorBundle

09PHP

Since Jan 24Pushed 10y ago1 watchersCompare

[ Source](https://github.com/cristianpana86/GeneratorBundle)[ Packagist](https://packagist.org/packages/cpana/generator-bundle)[ RSS](/packages/cpana-generator-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CPANAGeneratorBundle
====================

[](#cpanageneratorbundle)

This bundle is an extension of [PUGXGeneratorBundle](https://github.com/PUGX/PUGXGeneratorBundle) which is a project improving [SensioGeneratorBundle](https://github.com/sensio/SensioGeneratorBundle).

**CPANAGeneratorBundle** adds to the **Show view** of an entity the associated objects from Bidirectional relations.
**Example:** there are 2 entities: Author and Book found in One-to-Many **BIDIRECTIONAL** relation. In 'Author' entity there is a property called 'books' of type ArrayCollection. In the **author/show view** after the fields related to Author there will be listed the Books associated. Also CPANAGeneratorBundle is adding buttons for **Add book**, **view** and **edit**.

**Author**

Last name: Herbert
First name: Frank
Nationality: American
Id: 1

**Books**
[Add book](www.newbook.com)

Title: Dune Chronicles
Genre : Science Fiction
Id:1
[view](www.viewbook.com) [edit](www.editbook.com)

Title: Dune Mesiah
Genre: Science Fiction
Id: 2
[view](www.viewbook.com) [edit](www.editbook.com)

---

Documentation
-------------

[](#documentation)

[Read the documentation](Resources/doc/index.md)

---

**PUGXGeneratorBundle** adds many functionalities on top of SensioGeneratorBundle:

- main block name customizable in layout
- forms in correct namespace (under Type, not under Form)
- @ParamConverter in actions
- different format for dates/times/datetimes
- include relation fields in show and index templates
- shorter form names
- real entity names instead of "$entity" in actions and templates
- translated texts
- support for form themes (customizable)
- default templates suitable with Boostrap and Font Awesome
- nice "check" icons for boolean fields (when using Font Awesome)
- support for pagination (requires [KnpPaginatorBundle](https://github.com/KnpLabs/KnpPaginatorBundle))
- support for filters (requires [LexikFormFilterBundle](https://github.com/lexik/LexikFormFilterBundle))
- support for sorting
- optional target bundle
- better generated tests
- fixtures generation

See also
--------

[](#see-also)

For screenshots examples, see [PUGXGeneratorBundleSandbox](https://github.com/garak/PUGXGeneratorBundleSandbox).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11809755?v=4)[Cristian Pană](/maintainers/cpana)[@cpana](https://github.com/cpana)

---

Top Contributors

[![cristianpana86](https://avatars.githubusercontent.com/u/13106810?v=4)](https://github.com/cristianpana86 "cristianpana86 (8 commits)")

### Embed Badge

![Health badge](/badges/cpana-generator-bundle/health.svg)

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

PHPackages © 2026

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