Yii 1.1: tconsolerunner

An extension for running console command from web application on background.
13 followers

This extension is a trigger for console application. It's will call and running console command that already defined in protected/commands directory on background.

Requirements

Console application

Usage

  1. Put TConsoleRunner.php on extensions or components directory
  2. Create your console.php file or use that included in this extensions and put it on root directory of your application or same location with index.php.
  3. Create your console command and put it on protected/commands directory
  4. Trigger the console command from your web application like this:
$console=new TConsoleRunner('console.php');
$console->run('parsing filetoparse.xls');
$console->run('sendnotifemail tyohan@myemail.com');

Be the first person to leave a comment

Please to leave your comment.

Create extension