aplia / ez-legacy-shell
Integration of PsySh and eZ publish legacy
v1.0.1
2021-02-16 14:29 UTC
Requires
- php: >=5.3
- composer/composer: >=1.0
- psy/psysh: @stable
README
This an integration of PsySh and the eZ publish legacy kernel. It initializes the kernel and starts a new PsySh.
This is similar to the ezsh
project https://github.com/lolautruche/ezsh,
but does not require the new eZ publish stack.
The shell has some additional variables related to eZ publish:
kernel
- The current kernel instance.user
- The currently logged in user, usually admin.db
- The current db instance.site_ini
- The INI instance forsite.ini
.
Also if the Starter-Bootstrap is available it also makes these variables available:
app
- The base application instance.config
- The base configuration instance.
Installation
composer require aplia/ez-legacy-shell:@stable
Usage
Start the shell from the vendor bin folder.
vendor/bin/ezpsh