Download the PHP package lolautruche/ezsh without Composer
On this page you can find all versions of the php package lolautruche/ezsh. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lolautruche/ezsh
More information about lolautruche/ezsh
Files in lolautruche/ezsh
Package ezsh
Short Description Interactive debug shell for eZ Publish 5+ apps. Uses PsySH.
License MIT
Informations about the package ezsh
eZ Debug Shell
eZ Debug Shell is an interactive CLI debugger for eZ Platform. It is built on top of PsySH and thus acts as a Read-eval-print-loop (aka repl).
It allows you to debug live code in the context of an eZ Publish application, avoiding to create CLI commands.
Install
Global install (recommended)
v1.0
is compatible with eZ Publish 5.3+ whilev2.0
is only compatible with eZ Platform.
This will install ezsh
executable into the ~/.composer/vendor/bin folder.
For
ezsh
to work properly without hassle, ensure you have~.composer/vendor/bin
in your$PATH
:
Project install
You can install ezsh
binary in your eZ project with Composer:
Usage
Important: To be able to use
ezsh
, you first need to be in your eZ project root:
This will display something like:
Starting from here, you'll be able to evaluate any kind of code in the context of your project.
Available variables
Some variables are already set for you, like the service container, the ConfigResolver and the Repository:
Variable | Description |
---|---|
$container |
Instance of Symfony ServiceContainer. Get your services with it |
$kernel |
Instance of your EzPublishKernel |
$repository |
Instance of the eZ Content repository (to use API) |
$contentService |
The ContentService |
$contentTypeService |
The ContentTypeService |
$locationService |
The LocationService |
$searchService |
The SearchService |
$userService |
The UserService |
$configResolver |
The ConfigResolver (to get SiteAccess aware settings) |
Example
From the debug shell, you can define any kind of functions, loops, conditions...
For more information see PsySH documentation.