PHPackages                             theofidry/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. theofidry/psysh-bundle

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

theofidry/psysh-bundle
======================

A port of the PHP REPL PsySH for Symfony.

4.5.0(4y ago)2083.8M—5.8%30[7 issues](https://github.com/theofidry/PsyshBundle/issues)[2 PRs](https://github.com/theofidry/PsyshBundle/pulls)5MITPHPPHP &gt;=8.0

Since Jun 22Pushed 2y ago3 watchersCompare

[ Source](https://github.com/theofidry/PsyshBundle)[ Packagist](https://packagist.org/packages/theofidry/psysh-bundle)[ GitHub Sponsors](https://github.com/theofidry)[ RSS](/packages/theofidry-psysh-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (24)Used By (5)

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

[](#psyshbundle)

[![Package version](https://camo.githubusercontent.com/5f8b659d9eca182b0fde287fb208d02f092b0f7a60d72ed1fef1c49107daa20a/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468656f66696472792f70737973682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/theofidry/psysh-bundle)[![Build Status](https://camo.githubusercontent.com/6797075447611ea781846e414d3372e1f17da40d44d01eac03dbcf12f6ea6b34/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468656f66696472792f507379736842756e646c652e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.org/theofidry/PsyshBundle?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5f6c2fda481baca336472d37820772dd9d8c9293f9172c65886e6869d5835375/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7468656f66696472792f507379736842756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/theofidry/PsyshBundle/?branch=master)[![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 theofidry/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`)

```
