Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
/ PsyshBundle Public archive
forked from navitronic/psymf

A command line REPL bundle for Symfony using PsySH.

License

Notifications You must be signed in to change notification settings

theofidry/PsyshBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PsyshBundle

Package version Build Status SensioLabsInsight Dependency Status Scrutinizer Code Quality Code Coverage

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!

Documentation

  1. Install
  2. PsySH as a debugger
  3. Reflect like a boss
  4. PsySH for breakpoints
  5. Customize PsySH

Install

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;
}

Usage

php app/console psysh

PsySH Shell

Credits

This bundle is developed by Théo FIDRY. This project has been made possible thanks to:

License

license

About

A command line REPL bundle for Symfony using PsySH.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • PHP 100.0%