svkurowski/yii2-shell

An interactive shell for Yii 2 projects.

Installs: 1 447

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2015-09-09 13:01 UTC

This package is not auto-updated.

Last update: 2024-11-09 19:04:07 UTC


README

Latest Stable Version Total Downloads License

This extension for Yii framework 2.0 applications provides access to an interactive shell for development and debugging. It wraps the awesome psysh application for easy access via the Yii console.

The extension is released under the MIT License.

Installation

The preferred way to install this extension is through composer.

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

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 for a list of available features.