wintersilence / kohana-cli
The Kohana module for work in CLI
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 5
Forks: 1
pkg:composer/wintersilence/kohana-cli
Requires
- php: >=5.6
- composer/installers: ~1.0
- kohana/core: >=3.3
This package is not auto-updated.
Last update: 2025-04-26 18:42:26 UTC
README
CLI module for Kohana framework 3.x.
Install
Replace minion
module in DOCROOT/index.php
if (PHP_SAPI == 'cli') { // replace this }
to
// Check whether the module is connected class_exists('CLI') || die('Please enable the `CLI` module.'); // Change exception handler set_exception_handler(['CLI_Exception', 'handler']); // Set CLI options ignore_user_abort(TRUE); ini_set('cli_server.color', 'on'); // Create and execute the main/initial task CLI_Tasker::factory(CLI::option('task'), CLI::option())->execute();
Use ./cli
and ./cli_daemon
to call CLI tasks in Linux.
For more information about usage, see guide
.
Features
- Clean and documented code
- Fix memory leaks and incorrect output
- Scaffold task