john-montigomo/symfony-maker-bundle
最新稳定版本:v1.0.0
Composer 安装命令:
composer require --dev 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.
README 文档
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.
统计信息
- 总下载量: 95
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-04