PHPackages                             svkurowski/yii2-shell - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. svkurowski/yii2-shell

ActiveYii2-extension[CLI &amp; Console](/categories/cli)

svkurowski/yii2-shell
=====================

An interactive shell for Yii 2 projects.

1.0.0(10y ago)61.5kMITPHP

Since Sep 9Pushed 10y ago2 watchersCompare

[ Source](https://github.com/svkurowski/yii2-shell)[ Packagist](https://packagist.org/packages/svkurowski/yii2-shell)[ RSS](/packages/svkurowski-yii2-shell/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

An interactive shell for Yii 2
==============================

[](#an-interactive-shell-for-yii-2)

[![Latest Stable Version](https://camo.githubusercontent.com/aadfad6cfcae716ac25bcb28593793f4e43193fc961d04553bb99e6229194e7b/68747470733a2f2f706f7365722e707567782e6f72672f73766b75726f77736b692f796969322d7368656c6c2f76657273696f6e)](https://packagist.org/packages/svkurowski/yii2-shell)[![Total Downloads](https://camo.githubusercontent.com/e55ead2bdc06a39ee332a3107265795ffc4a28ea44df084278a4f1d95995aa5a/68747470733a2f2f706f7365722e707567782e6f72672f73766b75726f77736b692f796969322d7368656c6c2f646f776e6c6f616473)](https://packagist.org/packages/svkurowski/yii2-shell)[![License](https://camo.githubusercontent.com/cfd8c5cfc61f355ddb0589821ae24d839f30eee51b4cb03736ec13bf92287c17/68747470733a2f2f706f7365722e707567782e6f72672f73766b75726f77736b692f796969322d7368656c6c2f6c6963656e7365)](https://packagist.org/packages/svkurowski/yii2-shell)

This extension for [Yii framework 2.0](http://www.yiiframework.com) applications provides access to an interactive shell for development and debugging. It wraps the awesome [psysh](http://psysh.org/) application for easy access via the Yii console.

The extension is released under the MIT License.

Installation
============

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --dev --prefer-dist svkurowski/yii2-shell

```

or add

```
"svkurowski/yii2-shell": "~1.0.0"

```

to the `require-dev` section of your `composer.json`.

Usage
=====

[](#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 `$this` or `Yii::$app`. Additionally you have access to all your and your dependencies' classes.

See [psysh's website](http://psysh.org/#features) for a list of available features.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3950d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa9368ad691ea6911adb2d71065c2a7de60c233f5c2d0ef68b734c8421738153?d=identicon)[svkurowski](/maintainers/svkurowski)

---

Top Contributors

[![svkurowski](https://avatars.githubusercontent.com/u/2794645?v=4)](https://github.com/svkurowski "svkurowski (1 commits)")

---

Tags

consoleREPLshellyii2

### Embed Badge

![Health badge](/badges/svkurowski-yii2-shell/health.svg)

```
[![Health](https://phpackages.com/badges/svkurowski-yii2-shell/health.svg)](https://phpackages.com/packages/svkurowski-yii2-shell)
```

###  Alternatives

[psy/psysh

An interactive shell for modern PHP.

9.8k582.3M821](/packages/psy-psysh)[samdark/yii2-webshell

A web shell that allows to run yii console commands and create your own commands.

22886.7k2](/packages/samdark-yii2-webshell)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
