2017 © Pedro Peláez
 

yii2-extension yii2-command-caller

Yii2 command caller

image

edofre/yii2-command-caller

Yii2 command caller

  • Thursday, October 26, 2017
  • by edofre
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 14 % Grown

The README.md

Yii2 Command Caller component

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

Installation

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

To install, either run, (*3)

$ php composer.phar require edofre/yii2-command-caller "V1.0.1"

or add, (*4)

"edofre/yii2-command-caller": "V1.0.1"

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

Usage

As application component

Add the component to your configuration file, (*6)

    'components' => [
        'consoleRunner' => [
            'class' => 'edofre\commandcaller\CommandCaller',
            // Default values, not required
            'script' => '@app/yii',
            'executable' => '/usr/bin/php',
        ]
    ]
// We will change the $result variable in the CommandCaller class
Yii::$app->consoleRunner->run('command parameter1 parameter2');

As single class

$commandCaller = new \edofre\commandcaller\CommandCaller();
$commandCaller->run('command parameter1 parameter2');

The Versions

26/10 2017

dev-master

9999999-dev https://github.com/edofre/yii2-command-caller

Yii2 command caller

  Sources   Download

MIT

The Requires

 

by Edo Freriks

command async background caller

26/10 2017

v1.0.1.x-dev

1.0.1.9999999-dev https://github.com/edofre/yii2-command-caller

Yii2 command caller

  Sources   Download

MIT

The Requires

 

by Edo Freriks

command async background caller

26/10 2017

V1.0.1

1.0.1.0 https://github.com/edofre/yii2-command-caller

Yii2 command caller

  Sources   Download

MIT

The Requires

 

by Edo Freriks

command async background caller

26/10 2017

v1.0.0.x-dev

1.0.0.9999999-dev https://github.com/edofre/yii2-command-caller

Yii2 command caller

  Sources   Download

MIT

The Requires

 

by Edo Freriks

command async background caller

26/10 2017

V1.0.0

1.0.0.0 https://github.com/edofre/yii2-command-caller

Yii2 command caller

  Sources   Download

MIT

The Requires

 

by Edo Freriks

command async background caller