A bundle to use the php REPL PsySH with Symfony. Learn more at psysh.org and check out the Interactive Debugging in PHP talk from OSCON on Presentate.
What does it do exactly?
- Loads PsySH with the application dependencies
- Gives access to the following variables:
Variable | Description |
---|---|
$container |
Instance of Symfony ServiceContainer |
$kernel |
Instance of Symfony Kernel |
$parameters |
Instance of Symfony parameters |
Aside from that it's the plain old PsySH!
You can use Composer to install the bundle to your project:
composer require --dev theofidry/psysh-bundle
Then, enable the bundle by updating your app/config/AppKernel.php
file to enable the bundle:
<?php
// app/config/AppKernel.php
public function registerBundles()
{
//...
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
//...
$bundles[] = new Fidry\PsyshBundle\PsyshBundle();
}
return $bundles;
}
php app/console psysh
This bundle is developed by Théo FIDRY. This project has been made possible thanks to:
- Justin Hileman: author of PsySH and all the contributors of the PsySH project
- Adrian Palmer: gave the lead for porting PsySH on Symfony