Yii Framework PHP Shell
Need help with yii2-shell?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.
yiisoft

Description

Interactive shell

127 Stars 19 Forks BSD 3-Clause "New" or "Revised" License 42 Commits 1 Opened issues

Services available

Need anything else?

Interactive Shell Extension for Yii 2


This extension provides an interactive shell for Yii framework 2.0 based on psysh.

For license information check the LICENSE-file.

Latest Stable Version Total Downloads

Installation

The preferred way to install this extension is through composer.

Either run

composer require yiisoft/yii2-shell

or add

"yiisoft/yii2-shell": "~2.0.0"

to the

require
section of your composer.json.

Usage

After installation, you will be able to run the interactive shell via command line:

# Change path to your application's root directory
cd path/to/myapp

Start the interactive shell

./yii shell

You can access the application object using

Yii::$app
. Additionally you have access to all your and your dependencies' classes.

See psysh's website for a list of available features.

Screenshot

The following screenshot shows a usage example:

Usage example of Yii2 shell

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.