bitban/psysh-bundle

Bundle to integrate REPL PsySH with Symfony projects

1.4.0 2020-12-02 12:13 UTC

This package is auto-updated.

Last update: 2024-12-29 06:40:42 UTC


README

Latest Stable Version Build Status Code Coverage Code Quality

The bundle fully integrates the PsySH into the Symfony framework.

Installation

The suggested installation method is via composer:

$ composer require alexmasterov/psysh-bundle

Add the bundle in your config:

// config/bundles.php
return [
    // ...
    AlexMasterov\PsyshBundle\PsyshBundle::class => ['dev' => true],
];

Usage

For PsySH run the following command:

$ php bin/console psysh:shell

Useful cases

services:
    Controller\:
        resource: '../src/Controller'
        tags: ['psysh.variable']

    Service:
        tags:
            - { name: psysh.variable, var: mail }
psysh:
  variables:
    - @service
    - { db: PDO }
$ php bin/console psysh:shell
>>> ls
Variables: $someController, $mail, $someService, $db

Configuration

Some common options. For a more detailed list, see wiki.

License

MIT