PHP code example of edofre / yii2-command-caller
1. Go to this page and download the library: Download edofre/yii2-command-caller library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
edofre / yii2-command-caller example snippets
'components' => [
'consoleRunner' => [
'class' => 'edofre\commandcaller\CommandCaller',
// Default values, not
// We will change the $result variable in the CommandCaller class
Yii::$app->consoleRunner->run('command parameter1 parameter2');
$commandCaller = new \edofre\commandcaller\CommandCaller();
$commandCaller->run('command parameter1 parameter2');
$ php composer.phar