bundles.php). No major refactoring or architectural changes are needed.dev environments, avoiding production risks. This aligns with Symfony’s best practices for environment-specific tools.psysh/psysh package, which may introduce versioning constraints or compatibility issues if not aligned with the project’s PHP version (e.g., PHP 8.x features).psysh/psysh is bundled, and is it compatible with the project’s PHP version (e.g., PHP 8.1+ features)?tinker, Symfony’s var_dump() helpers, or IDE debugging) that might better fit the team’s workflow?debug:container, debug:router, and var:dump for comprehensive debugging.composer require alexmasterov/psysh-bundle
config/bundles.php:
AlexMasterov\PsyshBundle\PsyshBundle::class => ['dev' => true],
config/packages/psysh.yaml:
psysh:
variables:
- { service: 'app.service.mailer' }
- { db: '@doctrine.dbal.connection' }
php bin/console psysh:shell
>>> ls should list configured services).alexmasterov/psysh-bundle and psysh/psysh. Due to low maintenance signals, consider forking or replacing if critical issues arise.psysh/psysh is pinned to a compatible version to avoid breaking changes.var_dump() or IDE debugging for quick iterations. Teams can inspect live objects (e.g., $request->getContent()) interactively.dev/test stages.@security.token_storage) in the REPL could leak data. Mitigate by:
.env flags to disable PsySH in certain environments.psysh/psysh or Symfony could break the bundle. Mitigate by:
composer.json.dev: true in bundles.php.ls, dump(), exit).How can I help you explore Laravel packages today?