For license information check the LICENSE-file.
The preferred way to install this extension is through composer.
composer require yiisoft/yii2-shell
require section of your composer.json.
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.
The following screenshot shows a usage example: