PHPackages                             teamdotblue/psysh-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. teamdotblue/psysh-bundle

ActiveSymfony-bundle[CLI &amp; Console](/categories/cli)

teamdotblue/psysh-bundle
========================

A port of the PHP REPL PsySH for Symfony.

v4.9.0(1y ago)439.7k↑22.1%3MITPHPPHP &gt;=8.2CI passing

Since Jul 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/teamdotblue/PsyshBundle)[ Packagist](https://packagist.org/packages/teamdotblue/psysh-bundle)[ RSS](/packages/teamdotblue-psysh-bundle/feed)WikiDiscussions 4.x Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (28)Used By (0)

PsyshBundle
===========

[](#psyshbundle)

[![Package version](https://camo.githubusercontent.com/e63a6cfdf468f32c75ec9b99e539a6f7329ccff7b8831d77005770df23383157/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7465616d646f74626c75652f70737973682d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/teamdotblue/psysh-bundle)[![License](https://camo.githubusercontent.com/10e85a5778fe7601504a17ecd18dfa7097f473186b0f947bc10db2d3e4f530e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d7265642e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A bundle to use the php REPL [PsySH](https://psysh.org/) with [Symfony](https://symfony.com/). Learn more at [psysh.org](https://psysh.org/) and check out the [Interactive Debugging in PHP talk from OSCON](https://presentate.com/bobthecow/talks/php-for-pirates) on Presentate.

What does it do exactly?

- Loads [PsySH](https://psysh.org/) with the application dependencies
- Gives access to the following variables:

VariableDescription`$container`Instance of Symfony ServiceContainer`$kernel`Instance of Symfony Kernel`$parameters`Instance of Symfony parametersAside from that it's the plain old [PsySH](https://psysh.org/)! You can also [customize it](#customize-psysh) to add your own variables.

Documentation
-------------

[](#documentation)

1. [Install](#install)
2. [Usage](#usage)
    1. [PsySH as a debugger](doc/debugger.md)
    2. [Reflect like a boss](doc/reflect.md)
    3. [PsySH for breakpoints](doc/breakpoint.md)
3. [Customize PsySH](#customize-psysh)
4. [Credits](#credits)

Install
-------

[](#install)

You can use [Composer](https://getcomposer.org/) to install the bundle to your project:

```
composer require --dev teamdotblue/psysh-bundle
```

Then, enable the bundle by updating your `app/AppKernel.php` file to enable the bundle:
(not needed on symfony 5, bundle is automaticaly registred in `config/bundles.php`)

```
