Symfony MakerBundle

What Symfony MakerBundle is
Symfony MakerBundle generates PHP code for Symfony projects through commands in the `make:` namespace. It can create commands, controllers, form classes, tests, and other code to reduce boilerplate. The bundle requires no configuration by default, though its settings can be overridden, and it uses php-cs-fixer to apply coding standards to generated PHP files. The `make:entity` command depends on `doctrine/orm` being installed and configured; it supports ORM, not ODM. Developers can add custom `make:` commands by extending `AbstractMaker` and registering the class as a `maker.command` service. Generated code generally cannot be modified, so the documentation recommends a custom maker when changes are needed. The Symfony source code is released under the MIT license, and the bundle is installed with Composer as a development dependency. Symfony directs security reports to a private channel and directs requests about MakerBundle extension points to an issue. The listed platform is Linux.
Who it suits
Symfony MakerBundle suits PHP developers building Symfony projects who want generated commands, controllers, forms, tests, or other boilerplate. Developers who need different generated output can create and register custom makers.
What it does well
- Generates commands, controllers, form classes, and tests.
- Requires no configuration by default.
- Applies PHP coding standards with php-cs-fixer.
- MIT-licensed and installed as a Composer development dependency.
What to know first
- The `make:entity` command requires configured Doctrine ORM.
- Supports ORM, not ODM.
- Generated code generally cannot be modified.
Limits
The `make:entity` command requires configured `doctrine/orm` and supports ORM, not ODM. Generated code generally cannot be modified; use a custom maker when you need different output.
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| Symfony MakerBundle | Open-source bundle · installed with Composer as a development dependency | Free |
As symfony.com lists them, read 9 Oct 2026. The maker's own page has the final word.
Getting started
- Install Symfony MakerBundle with Composer as a development dependency.
- Run an available command from the `make:` namespace to generate code.
- Install and configure `doctrine/orm` before using `make:entity`.
- Extend `AbstractMaker` and register a `maker.command` service to add a custom command.
Symfony MakerBundle is a free code-generation add-on for Symfony, aimed at PHP developers who want common project scaffolding from the command line. It is most compelling when your work already follows Symfony conventions; teams that need different generated output will need to extend it.
Overview
MakerBundle supplies commands in the make: namespace to generate controllers, form classes, tests, commands and other code. That makes it a practical way to reduce repetitive setup in Symfony projects, rather than a general-purpose generator for other frameworks or languages. It supports project scaffolding and runs as a CLI tool.
It requires no configuration to get started, and default settings can be overridden. Generated PHP files are formatted with php-cs-fixer, which helps keep output aligned with coding standards. The trade-off is that generated code generally cannot be modified directly; when the default output does not suit a project, the recommended route is a custom maker.
Key features
Standard commands and custom makers
Built-in commands cover recurring Symfony artifacts, while developers can add their own make: commands by extending AbstractMaker and registering the class as a maker.command service. Custom templates are supported. This is a useful escape hatch for teams with established conventions, though it asks developers to build and register a maker rather than simply editing generated files.
Doctrine requirement
make:entity requires doctrine/orm to be installed and configured. It supports ORM, not ODM, so projects using document mapping or no Doctrine ORM should not count on this command for entity generation.
Pricing
MakerBundle is free: the Symfony MakerBundle plan costs nothing and is an open-source bundle installed with Composer as a development dependency. There is no paid tier or free-trial period to weigh. The source code is released under the MIT license.
Platforms
Linux is the supported platform. MakerBundle generates PHP code and provides a CLI workflow, so it fits development environments built around Symfony and Composer.
Who it's for
Choose MakerBundle if you are building a Symfony application in PHP and want repeatable scaffolding for common files without configuring a separate generator. It is especially useful when the standard output fits your project or you can justify maintaining custom makers. It is a weaker fit for teams expecting to freely alter generated code, projects without Doctrine ORM that need entity generation, or developers working outside Symfony.
Pros and cons
- Pros: Free and open source, with no configuration required to use its defaults.
- Pros: Generates several common Symfony artifacts and supports custom templates and custom commands for project-specific conventions.
- Pros: php-cs-fixer enforces coding standards in generated PHP files.
- Cons: Generated code generally cannot be modified directly, making custom makers the path when defaults miss the mark.
- Cons: Entity generation depends on configured Doctrine ORM and does not support ODM.
- Cons: Its Symfony-specific scope offers little reason to choose it for other stacks.
Alternatives
For a wider look at this category, browse Code Generators or Web Frameworks.
Pick NestJS CLI instead if you want a free, MIT-licensed open-source CLI installable from npm rather than Symfony’s PHP-oriented tooling. Laravel Vapor is a freemium option with a free Sandbox plan capped at 1 project and 10 deployments, or an Unlimited Monthly plan at $39 a month (billed $39 /month), with unlimited projects and deployments; AWS cloud costs are not included. Consider it when those deployment plans better fit your needs than a local Symfony code generator.
Svelte REPL is a free, open-source web playground if browser-based Svelte work is a better fit. The free options Buffalo, Astro Starlight, Echo, Express and Koa are alternatives to consider when you want a different framework or development tool.
Verdict
Symfony MakerBundle is a sensible choice for PHP developers who want free, Symfony-native scaffolding and can work with its standard generated output or maintain custom makers. Its focused command set is the reason to adopt it; the Doctrine ORM dependency for entity generation and the limited ability to modify generated code are the reasons to look elsewhere.
Verdict
MakerBundle provides a focused set of code-generation commands for Symfony projects, with a path to custom makers when defaults do not fit. Keep the Doctrine requirement and generated-code limitation in mind.
Questions
How much does Symfony MakerBundle cost?
It is free and open source. The listed plan is free.
How do I install it?
It is installed with Composer as a development dependency.
What code can it generate?
Its `make:` commands can generate commands, controllers, form classes, tests, and other code.
Does `make:entity` require Doctrine?
Yes. `doctrine/orm` must be installed and configured. The command supports ORM but not ODM.
Can I customize the generated code?
Generated code generally cannot be modified. Developers can create custom `make:` commands by extending `AbstractMaker` and registering the class as a `maker.command` service.
What license does Symfony MakerBundle use?
Symfony source code is released under the MIT license.
Facts from Symfony MakerBundle's own pages
- Code linting
- Generated PHP files are formatted with a php-cs-fixer version and configuration packaged with MakerBundle, with environment variables available for custom paths. · symfony.com, 15 Oct 2026
- Code style
- MakerBundle uses php-cs-fixer to enforce coding standards when it generates PHP files. · symfony.com, 9 Oct 2026
- Command generation
- The `make:command` maker creates new Symfony console command classes. · symfony.com, 15 Oct 2026
- Command namespace
- The bundle provides code-generation commands under the `make:` namespace. · symfony.com, 9 Oct 2026
- Company description
- Symfony SAS describes itself as the company behind the Symfony PHP open-source framework and related products, certifications, and conferences. · ke.linkedin.com, 15 Oct 2026
- Company founding and size
- LinkedIn lists Symfony as privately held, founded in 2018, with 2–10 employees. · ke.linkedin.com, 15 Oct 2026
- Company headquarters
- LinkedIn lists Symfony SAS headquarters at Clichy, Île-de-France, France. · ke.linkedin.com, 15 Oct 2026
- Compatibility caveat
- Maker command arguments and generated code may change between minor releases, which matters for scripted workflows. · github.com, 15 Oct 2026
- Configuration
- The bundle works without configuration but supports settings such as `root_namespace`, `generate_final_classes`, and `generate_final_entities`. · symfony.com, 15 Oct 2026
- Controller generation
- The `make:controller` maker creates controller classes. · symfony.com, 15 Oct 2026
- Custom makers
- Developers can create their own `make:` commands by extending `AbstractMaker` and registering the class as a `maker.command` service. · symfony.com, 9 Oct 2026
- Custom makers API
- Developers can create custom `make:*` commands by extending `AbstractMaker` and registering the service with the `maker.command` tag. · symfony.com, 15 Oct 2026
- Doctrine limitation
- `make:entity` supports Doctrine ORM only and does not support Doctrine ODM. · symfony.com, 15 Oct 2026
- Documentation license
- The Symfony documentation and code samples for the bundle are licensed under Creative Commons BY-SA 3.0. · symfony.com, 15 Oct 2026
- Entity dependency
- The `make:entity` command requires `doctrine/orm` to be installed and configured, and supports ORM but not ODM. · symfony.com, 9 Oct 2026
- Entity generation
- The `make:entity` maker creates Doctrine ORM entity classes and requires Doctrine ORM. · symfony.com, 15 Oct 2026
- Event and messaging makers
- The project includes makers for event subscribers and other Symfony infrastructure such as messages and listeners. · github.com, 15 Oct 2026
- Extensibility limitation
- Broad configurability, pluggable generators, custom templates, and edge-case switches are explicitly outside the project's intended scope. · github.com, 15 Oct 2026
- Form generation
- MakerBundle can generate Symfony form classes. · symfony.com, 15 Oct 2026
- Founded
- 2017 · symfony.com, 28 Sept 2026
- Generated code
- Generated code generally cannot be modified; the documentation recommends adding a custom maker when needed. · symfony.com, 9 Oct 2026
- Generated-code limitation
- Generated code generally cannot be customized directly; the documentation recommends adding a separate maker for different output. · symfony.com, 15 Oct 2026
- Installation
- It is installed as a development dependency with `composer require --dev symfony/maker-bundle`. · symfony.com, 15 Oct 2026
- License
- The MakerBundle software is released under the MIT license. · github.com, 15 Oct 2026
Where Symfony MakerBundle stands on Freedom251
- Web Frameworks#2 of 31
- Frameworks#2 of 28
- Code Generators#4 of 33