Download the PHP package jrmgx/interactive-bundle without Composer
On this page you can find all versions of the php package jrmgx/interactive-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jrmgx/interactive-bundle
More information about jrmgx/interactive-bundle
Files in jrmgx/interactive-bundle
Package interactive-bundle
Short Description Interact with your Symfony project from the command line.
License MIT
Homepage https://github.com/jrmgx/InteractiveBundle
Informations about the package interactive-bundle
InteractiveBundle
A bundle to use the php REPL PsySH with Symfony, learn more at psysh.org.
What this Bundle do exactly?
- Boots PsySH with your application dependencies
- Exposes helpers commands to ease the use of your application
Quick Look
To start:
service helper
service $your_variable_name = the_service_identifier
You don't have to put the full service name, the helper will do its best to find out.
instance helper
instance $your_variable_name = the_class_name
You don't have to put the full class name, the helper will do its best to find out.
Full Example
That's it! You now have a new entry in your database.
Aside from that it's the plain old PsySH! You can also customize it to add your own commandes and variables.
Install
You should use Composer to install the bundle to your project:
Usage
Customize PsySH
Adding a custom command
Adding a custom command for PsySH is as simple as inheriting from Psy\Command\Command.
Adding custom variables
It is possible to add custom variables to the shell via configuration.
Variables can be of any type, container parameters references (e.g. %kernel.debug%) or even services
(prefixed with @, e.g. "@my_service").
Now if you run bin/interactive and then ls,
you will see the variables $foo, $router, $some and $debug.
Credits
This bundle is developed by Jerome Gangneux
This project has been made possible thanks to:
- Théo FIDRY: main author of this Bundle before the fork (found here)
- Justin Hileman: author of PsySH and all the contributors of the PsySH project
- Adrian Palmer: gave the lead for porting PsySH on Symfony
All versions of interactive-bundle with dependencies
ext-json Version *
psy/psysh Version ^0.12
symfony/error-handler Version ^7.0|^8.0
symfony/expression-language Version ^7.0|^8.0
symfony/finder Version ^7.0|^8.0
symfony/framework-bundle Version ^7.0|^8.0