2017 © Pedro Peláez
 

yii2-extension yii2-shell

The interactive shell extension for Yii framework

image

yiisoft/yii2-shell

The interactive shell extension for Yii framework

  • Thursday, June 14, 2018
  • by cebe
  • Repository
  • 23 Watchers
  • 98 Stars
  • 35,045 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 18 Forks
  • 1 Open issues
  • 4 Versions
  • 22 % Grown

The README.md

, (*1)

Interactive Shell Extension for Yii 2


This extension provides an interactive shell for Yii framework 2.0 based on psysh., (*2)

For license information check the LICENSE-file., (*3)

Latest Stable Version Total Downloads, (*4)

Installation

The preferred way to install this extension is through composer., (*5)

Either run, (*6)

composer require yiisoft/yii2-shell

or add, (*7)

"yiisoft/yii2-shell": "~2.0.0"

to the require section of your composer.json., (*8)

Usage

After installation, you will be able to run the interactive shell via command line:, (*9)

# 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., (*10)

See psysh's website for a list of available features., (*11)

Configuration

You can configure the PsySH shell by setting options via the shellConfig variable in the controller, i.e. add this to your console application configuration:, (*12)

'controllerMap' => [
    'shell' => [
        'shellConfig' => [
            'updateCheck' => 'weekly',
            'verbosity' => \Psy\Configuration::VERBOSITY_VERBOSE,
        ],
    ],
],

See https://github.com/bobthecow/psysh/wiki/Config-options for a list of PsySH configurable options., (*13)

Note: updateCheck is explictly set to never by yii2-shell. All other PsySH options use default values., (*14)

Screenshot

The following screenshot shows a usage example:, (*15)

Usage example of Yii2 shell, (*16)

The Versions

14/06 2018

3.0.x-dev

3.0.9999999.9999999-dev

The interactive shell extension for Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Daniel Gomez Pan
by Sascha Vincent Kurowski

yii2 shell

26/04 2018

dev-master

9999999-dev

The interactive shell extension for Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Daniel Gomez Pan
by Sascha Vincent Kurowski

yii2 shell

26/03 2018

2.0.1

2.0.1.0

The interactive shell extension for Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Daniel Gomez Pan
by Sascha Vincent Kurowski

yii2 shell

22/11 2016

2.0.0

2.0.0.0

The interactive shell extension for Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Daniel Gomez Pan
by Sascha Vincent Kurowski

yii2 shell