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
Requires
- php: >=8.1
- doctrine/inflector: ^2.0
- nikic/php-parser: ^5.0
- symfony/config: ^6.4|^7.0
- symfony/console: ^6.4|^7.0
- symfony/dependency-injection: ^6.4|^7.0
- symfony/deprecation-contracts: ^2.2|^3
- symfony/filesystem: ^6.4|^7.0
- symfony/finder: ^6.4|^7.0
- symfony/framework-bundle: ^6.4|^7.0
- symfony/http-kernel: ^6.4|^7.0
- symfony/process: ^6.4|^7.0
Requires (Dev)
- composer/semver: ^3.0
- doctrine/doctrine-bundle: ^2.5.0
- doctrine/orm: ^2.15|^3
- symfony/http-client: ^6.4|^7.0
- symfony/phpunit-bridge: ^6.4.1|^7.0
- symfony/security-core: ^6.4|^7.0
- symfony/yaml: ^6.4|^7.0
- twig/twig: ^3.0|^4.x-dev
Conflicts
- doctrine/doctrine-bundle: <2.10
- doctrine/orm: <2.15
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.