john-montigomo/symfony-maker-bundle

This fork of Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code with flexible architecture configuration.

Installs: 95

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 440

Type:symfony-bundle

pkg:composer/john-montigomo/symfony-maker-bundle

v1.0.0 2025-06-04 01:34 UTC

This package is auto-updated.

Last update: 2025-12-04 02:59:53 UTC


README

This fork of Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code with flexible architecture configuration.

composer require --dev john-montigomo/symfony-maker-bundle

The MakerBundle is the fastest way to generate the most common code you'll need in a Symfony app: commands, controllers, form classes, event subscribers and more!

Config\Packages\Maker.yaml

maker:

root_namespace:              'App'
generate_final_classes:      true
generate_final_entities:     false

entity:                      'Domain\Entity\'                # default = App\Entity
repository:                  'Infrastructure\Repository\'    # default = App\Repository
abstract_repository:         true                            # default = false
entity_interface:            'Domain\Entity\Interface\'      # default = '' (absence)
service:                     'Domain\Service\'               # default = App\service
entity_repository_interface: 'Domain\Interface\Repository\'  # default = '' (absence)
common_factory:              'Domain\Factory\'               # default = '' (absence)

command:                     'Controller\Cli\'               # default = App\Command
form:                        'Controller\Form\'              # default = App\Form
validator:                   'Controller\Validator\'         # default = App\Validator
listener:                    'Application\EventListener\'    # default = App\EventListener
subscriber:                  'Application\EventSubscriber\'  # default = App\EventSubscriber
security:                    'Application\Security\'         # default = App\Security

Documentation

Read the documentation on Symfony.com

Backwards Compatibility Promise

This bundle shares the backwards compatibility promise from Symfony. But, with a few clarifications.

A) The input arguments or options to a command may change between minor releases. If you're using the commands in an automated, scripted way, be aware of this.

B) The generated code itself may change between minor releases. This will allow us to continuously improve the generated code!

Build Documentation Locally

This is not needed for contributing, but it's useful if you would like to debug some issue in the docs or if you want to read MakerBundles Documentation offline.

cd _docs_build/

composer install

php build.php

After generating docs, serve them with the internal PHP server:

php -S localhost:8000 -t output/

Browse http://localhost:8000 to read the docs.