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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?