Pros:
bundles.php, YAML/XML config). This reduces friction for teams already using Symfony’s ecosystem.color_mode, history_size, variables) allow customization for team preferences or CI/CD environments.Cons:
psy/psysh (v0.9+), which may introduce versioning conflicts or security risks if not actively maintained.bundles.php. Minimal boilerplate required (psysh:shell command).ContainerBuilder changes).psy/psysh may conflict with other packages using PHP’s reflection or REPL features.@doctrine.dbal.connection) be protected in REPL sessions?symfony/debug-pack (with debug:container and debug:autowiring) suffice for debugging needs?var_dump + IDE debugging)?var_dump, etc.).composer require alexmasterov/psysh-bundle
config/bundles.php:
AlexMasterov\PsyshBundle\PsyshBundle::class => ['dev' => true],
php bin/console psysh:shell
# config/packages/psysh.yaml
psysh:
variables:
- @service.container # Example: Inject full container
- { request: @request_stack.getCurrentRequest() }
color_mode: forced, history_size: 1000).>>> $mail->send()).@security.token_storage)..psyshrc.php for team-wide configs).ls, dump(), exit).ContainerBuilder changes may break service injection.psysh.variable tags.symfony/dependency-injection constraint to ^6.0.PsyshBundle to support Symfony’s new container compilation.psy/psysh to latest (v0.12.x) and test.psysh or custom REPL integrations.psysh.variable tags for controllers).psysh.yaml or .psyshrc.php files may need versioning (e.g., Git).How can I help you explore Laravel packages today?