2017 © Pedro Peláez
 

kohana-module kohana-cli

The Kohana module for work in CLI

image

wintersilence/kohana-cli

The Kohana module for work in CLI

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Kohana CLI module

CLI module for Kohana framework 3.3 or high., (*1)

Replaced basic minion module, for this change part of code in DOCROOT/index.php:, (*2)

if (PHP_SAPI == 'cli') 
{
    // Try and load minion
    class_exists('Minion_Task') OR die('Please enable the Minion module for CLI support.');
    set_exception_handler(array('Minion_Exception', 'handler'));

    Minion_Task::factory(Minion_CLI::options())->execute();
}

on, (*3)

if (PHP_SAPI == 'cli') 
{
    // Check whether the module is connected
    class_exists('CLI') OR die('Please enable the `CLI` module.');

    // Change exception handler
    set_exception_handler(array('CLI_Exception', 'handler'));

    // Ignore user aborts
    ignore_user_abort(TRUE);
    // Allow the script to run forever
    set_time_limit(0);
    // Enable to use ANSI color coding
    ini_set('cli_server.color', 'On');

    // Create and execute the main\initial task
    CLI_Tasker::factory(CLI::option('task'), CLI::option())->execute();
}

For short call CLI tasks in Linix OS use DOCROOT/cli and DOCROOT/cli_daemon., (*4)

For more information about usage, see module's user guide., (*5)

Distinctive features:

  • Clean and documented code
  • Fixed memory leaks and incorrect output text and the error
  • Easy task scaffolding

The Versions

11/04 2014

dev-3.3/master

dev-3.3/master

The Kohana module for work in CLI

  Sources   Download

BSD-3-Clause

The Requires

 

framework console task cli kohana

26/03 2014

dev-3.3/develop

dev-3.3/develop

The Kohana module for work in CLI

  Sources   Download

BSD-3-Clause

The Requires

 

framework console task cli kohana

26/03 2014

dev-3.4/develop

dev-3.4/develop

The Kohana module for work in CLI

  Sources   Download

BSD-3-Clause

The Requires

 

framework console task cli kohana

07/03 2014

dev-master

9999999-dev http://kohanaframework.org

The Kohana module for work in CLI

  Sources   Download

BSD-3-Clause

The Requires

 

framework console task cli kohana