A Symfony bundle that integrates the PsySH PHP REPL for interactive debugging and exploration of Symfony applications.
PsyshBundle is a Symfony bundle that integrates the PsySH PHP REPL into Symfony applications, providing an interactive command-line shell for debugging and exploration. It allows developers to execute PHP code within the context of their Symfony app, inspect services, parameters, and the kernel, and customize the shell with additional variables and commands. This tool is designed to streamline development workflows by offering real-time interaction with the application's state.
Symfony developers and PHP developers working on Symfony-based projects who need interactive debugging, testing, or exploration tools during development. It is particularly useful for those who prefer command-line interfaces for debugging and prototyping.
Developers choose PsyshBundle because it seamlessly integrates PsySH with Symfony, exposing key application components out of the box and allowing extensive customization. Its ability to add custom variables and commands through Symfony's service container makes it a flexible and powerful tool for interactive development, reducing the time spent on debugging and testing.
A command line REPL bundle for Symfony using PsySH.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically exposes key Symfony components like $container, $kernel, and $parameters, allowing direct inspection of the application state from the REPL without manual setup.
Supports adding custom variables and commands via Symfony configuration or service tags, enabling project-specific enhancements as shown in the README's customization examples.
In Symfony 3.3+, custom PsySH commands are autoconfigured when services inherit from Psy\Command classes, simplifying extension of the shell.
Can be used as a breakpoint debugger with the psysh() function, providing real-time code exploration and debugging within the Symfony context.
Tightly coupled with Symfony, making it useless for other PHP frameworks or standalone applications, which limits its versatility.
Requires manual bundle registration in Symfony versions before 5, adding extra configuration steps compared to automatic registration in newer versions.
Developers need to learn PsySH commands and syntax, which can be a barrier for those new to REPL tools or preferring simpler debugging methods.