aplia/ez-legacy-shell

Integration of PsySh and eZ publish legacy

v1.0.1 2021-02-16 14:29 UTC

This package is auto-updated.

Last update: 2024-04-16 21:27:50 UTC


README

This an integration of PsySh and the eZ publish legacy kernel. It initializes the kernel and starts a new PsySh.

Latest Stable Version Minimum PHP Version

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 for site.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