2017 © Pedro Peláez
 

yii2-extension yii2-console-runner

Runs console command in yii web application

image

toriphes/yii2-console-runner

Runs console command in yii web application

  • Tuesday, July 31, 2018
  • by toriphes
  • Repository
  • 5 Watchers
  • 21 Stars
  • 29,219 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 4 Versions
  • 12 % Grown

The README.md

yii2-console-runner

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

This is component for running console command in yii2 web applications, (*2)

Installation

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

To install, either run, (*4)

$ composer require toriphes/yii2-console-runner "*"

or add, (*5)

"toriphes/yii2-console-runner": "*"

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

Usage

You can user yii2-console-runner importing the class file, (*7)

use toriphes\console\Runner;
$output = '';
$runner = new Runner();
$runner->run('controller/action param1 param2 ...', $output);
echo $output; //prints the command output

or using it like an application component:, (*8)

//you config file
'components' => [
    'consoleRunner' => [
        'class' => 'toriphes\console\Runner'
    ]
]
//some application file
$output = '';
Yii::$app->consoleRunner->run('controller/action param1 param2 ...', $output);
echo $output; //prints the command output

The Versions

31/07 2018

dev-master

9999999-dev

Runs console command in yii web application

  Sources   Download

BSD-3-Clause

The Requires

 

by Giulio Ganci

extension yii2 console application web runner

31/07 2018

1.2.0

1.2.0.0

Runs console command in yii web application

  Sources   Download

BSD-3-Clause

The Requires

 

by Giulio Ganci

extension yii2 console application web runner

30/10 2017

1.1.0

1.1.0.0

Runs console command in yii web application

  Sources   Download

BSD-3-Clause

The Requires

 

by Giulio Ganci

extension yii2 console application web runner

13/06 2015

1.0.0

1.0.0.0

Runs console command in yii web application

  Sources   Download

BSD-3-Clause

The Requires

 

by Giulio Ganci

extension yii2 console application web runner