yii2-shell

Interactive shell

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者yiisoft/yii2-shell
主編程語言PHP
編程語言PHP (語言數: 1)
平台
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2016-03-04 13:06:39
推送於2025-02-25 09:21:28
最后一次提交2025-02-25 09:21:28
發布數7
最新版本名稱2.0.6 (發布於 2025-02-14 00:05:14)
第一版名稱2.0.0 (發布於 2016-11-22 22:30:26)
用户参与
星數136
關注者數24
派生數22
提交數59
已啟用問題?
問題數23
打開的問題數0
拉請求數20
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?