survos/code-bundle

generate PHP code for Symfony applications. Like maker-bundle, but with nette/php-generator

Fund package maintenance!
kbond

Installs: 236

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/survos/code-bundle

2.0.19 2025-09-28 14:31 UTC

This package is auto-updated.

Last update: 2025-10-03 13:17:45 UTC


README

Generate PHP code for Symfony applications. Like maker-bundle, but with nette/php-generator

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"