2017 © Pedro Peláez
 

symfony-bundle generator-bundle

Extension of PUGXSensioGeneratorBundle and SensioGeneratorBundle

image

cpana/generator-bundle

Extension of PUGXSensioGeneratorBundle and SensioGeneratorBundle

  • Sunday, January 24, 2016
  • by cpana
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CPANAGeneratorBundle

This bundle is an extension of PUGXGeneratorBundle which is a project improving SensioGeneratorBundle., (*1)

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., (*2)

Author, (*3)

Last name: Herbert
First name: Frank
Nationality: American
Id: 1, (*4)

Books
Add book, (*5)

Title: Dune Chronicles
Genre : Science Fiction
Id:1
view edit, (*6)

Title: Dune Mesiah
Genre: Science Fiction
Id: 2
view edit, (*7)


Documentation

Read the documentation, (*8)


PUGXGeneratorBundle adds many functionalities on top of SensioGeneratorBundle:, (*9)

  • 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)
  • support for filters (requires LexikFormFilterBundle)
  • support for sorting
  • optional target bundle
  • better generated tests
  • fixtures generation

See also

For screenshots examples, see PUGXGeneratorBundleSandbox., (*10)

The Versions

24/01 2016

dev-master

9999999-dev https://github.com/cristianpana86/

Extension of PUGXSensioGeneratorBundle and SensioGeneratorBundle

  Sources   Download

LGPL-3.0+

The Requires

 

by Cristian Pana

symfony code generation