Yii 1.1: tconsolerunner

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

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.


Console application


  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
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: tyohan
  • Category: Console
  • Votes: +11
  • Downloaded: 1,063 times
  • Created on: Aug 11, 2011
  • Last updated: never
  • Tags: console