survos / code-bundle
generate PHP code for Symfony applications. Like maker-bundle, but with nette/php-generator
Fund package maintenance!
2.10.14
2026-06-11 09:34 UTC
Requires
- php: ^8.5
- nette/php-generator: ^4.1
- nikic/php-parser: ^5.6
- roave/better-reflection: ^6.0
- symfony/config: ^8.1
- symfony/dependency-injection: ^8.1
- symfony/http-kernel: ^8.1
- twig/twig: ^3.4
Requires (Dev)
- api-platform/core: ^4.2
- doctrine/doctrine-bundle: ^2.7|^3.0
- doctrine/orm: ^2.12 || ^3.3
- easycorp/easyadmin-bundle: ^4.0
- league/csv: ^9.9
- openai-php/client: ^0.18.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^13.0
- survos/babel-bundle: ^2.5
- survos/ez-bundle: ^2.5
- survos/jsonl-bundle: ^2.5
- survos/meili-bundle: ^2.5
- survos/state-bundle: ^2.5
- symfony/browser-kit: ^8.1
- symfony/console: ^8.1
- symfony/framework-bundle: ^8.1
- symfony/http-client-contracts: ^3.5
- symfony/routing: ^8.1
- symfony/security-bundle: ^8.1
- symfony/twig-bundle: ^8.1
- symfony/var-dumper: ^8.1
This package is auto-updated.
Last update: 2026-06-20 20:31:41 UTC
README
Generate PHP code for Symfony applications. Like maker-bundle, but with nette/php-generator
Prerequistes for the demo
- php 8.4+
- Symfony CLI
- meilisearch
docker-compose.yaml
The bundle requires 2 classes, but you have to explicitly request them because of being in the --dev environment.
composer require --dev survos/code-bundle nikic/php-parser nette/php-generator
symfony new --webapp playground && cd playground composer req survos/code-bundle --dev
General Idea
When making 'controller' (lower-case), we're referring to a method in a Controller class.
Now let's create a simple command.
bin/console survos:make:command app:shout "greet someone, optionally in all caps"