yii2-shell

Interactive shell

Github stars Tracking Chart

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

Main metrics

Overview
Name With Owneryiisoft/yii2-shell
Primary LanguagePHP
Program languagePHP (Language Count: 1)
Platform
License:BSD 3-Clause "New" or "Revised" License
所有者活动
Created At2016-03-04 13:06:39
Pushed At2025-02-25 09:21:28
Last Commit At2025-02-25 09:21:28
Release Count7
Last Release Name2.0.6 (Posted on 2025-02-14 00:05:14)
First Release Name2.0.0 (Posted on 2016-11-22 22:30:26)
用户参与
Stargazers Count136
Watchers Count24
Fork Count22
Commits Count59
Has Issues Enabled
Issues Count23
Issue Open Count0
Pull Requests Count20
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private