alexmasterov / psysh-bundle
Bundle to integrate REPL PsySH with Symfony projects
Installs: 16 730
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1.0
- psy/psysh: ^0.9
- symfony/config: ^4.0|^5.0
- symfony/dependency-injection: ^4.0|^5.0
- symfony/http-kernel: ^4.0|^5.0
Requires (Dev)
- phpunit/phpunit: ^8.5.1
This package is auto-updated.
Last update: 2024-11-11 03:54:57 UTC
README
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.