k3ssen / generator
Generate content for your symfony4 project
Installs: 3 087
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
Requires (Dev)
- sg/datatablesbundle: ^1.0.4
- stof/doctrine-extensions-bundle: ^1.3
- symfony/asset: ~3.4|~4.0
- symfony/config: ~3.4|~4.0
- symfony/console: ~3.4|~4.0
- symfony/dependency-injection: ~3.4|~4.0
- symfony/dotenv: ~3.4|~4.0
- symfony/expression-language: ~3.4|~4.0
- symfony/form: ~3.4|~4.0
- symfony/orm-pack: ~1.0
- symfony/phpunit-bridge: ~3.4|~4.0
- symfony/process: ~3.4|~4.0
- symfony/security-bundle: ~3.4|~4.0
- symfony/templating: ~3.4|~4.0
- symfony/translation: ~3.4|~4.0
- symfony/twig-bundle: ~3.4|~4.0
- symfony/validator: ~3.4|~4.0
- symfony/yaml: ~3.4|~4.0
Suggests
- sg/datatablesbundle: ^1.0.4
- stof/doctrine-extensions-bundle: ^1.3
- symfony/security-bundle: ~3.4|~4.0
This package is auto-updated.
Last update: 2024-11-27 22:43:40 UTC
README
A Symfony bundle for quickly generating/prototyping a CRUD application. Compatible with Symfony 3.4 and Symfony 4.
This bundle is similar to Symfony's MakerBundle, except that this bundle is built to be more extensible.
Features:
- Generate entities using interactive commands:
- Define properties with their types (string, int, array, etc) and attributes (length, nullable, unique, etc)
- Types also include relationship-types
- ManyToOne, OneToMany, ManyToMany, OneToOne
- Adds fields to mapped or inversed targetEntity
- creates target entity if it does'nt exist yet.
- Add validations (annotations like
@Assert\Length
) - Add fields to existing entities
- Add traits
- Read existing entities and interactively add/edit/remove properties.
- Generate CRUD based on entities, including:
- Controller (optionally use subdirectories)
- AbstractController (generated once to be used by Controllers)
- Template (twig) files
- Form
- Voter (optional)
- AbstractVoter (generated once to be used by Voters)
- Datatable (optional)
- AbstractDatatable (generated once to be used by Datatables)
This bundle is highly customizable:
- Files are generated through twig files, which you can override by
using identical files in
/templates/bundles/GeneratorBundle/...
.- To make things simpler, you can use the command
generate:templates
to have this done automatically for you. - By using the
meta_entity
andgenerate_options
parameters in twig you'll have lots of options to make your files perfectly suited for your application.
- To make things simpler, you can use the command
- Enable/disable questions that you do or don't need
- Specify defaults
- For complex usage, the bundle is built in a very extensible way, allowing you to override nearly everything independently.