illusorium/minion
Composer 安装命令:
composer require illusorium/minion
包简介
Fork of official kohana module with support of queuing tasks
关键字:
README 文档
README
| ver | Stable | Develop |
|---|---|---|
| 3.3.x | ||
| 3.4.x |
Minion is a framework for running tasks via the CLI.
The system is inspired by ruckusing, which had a nice system for defining tasks but lacked the desired flexibility for kohana integration.
Getting Started
First off, download and enable the module in your bootstrap
Then copy the bash script minion alongside your index.php (most likely the webroot).
If you'd rather the executable be in a different location to index.php then simply modify the bash script to point to index.php.
You can then run minion like so:
./minion {task}
To view a list of minion tasks, run minion without any parameters, or with the --help option
./minion
./minion --help
To view help for a specific minion task run
./minion {task} --help
For security reasons Minion will only run from the cli. Attempting to access it over http will cause
a Kohana_Exception to be thrown.
If you're unable to use the binary file for whatever reason then simply replace ./minion {task} in the above
examples with
php index.php --uri=minion --task={task}
Writing your own tasks
All minion tasks must be located in classes/task/. They can be in any module, thus allowing you to
ship custom minion tasks with your own module / product.
Each task must extend the abstract class Minion_Task and implement Minion_Task::_execute().
See Minion_Task for more details.
Documentation
Code should be commented well enough not to need documentation, and minion can extract a class' doccomment to use as documentation on the cli.
Testing
This module is unittested using the unittest module.
You can use the minion group to only run minion tests.
i.e.
phpunit --group minion
Feel free to contribute tests(!), they can be found in the tests/minion directory. :)
License
This is licensed under the same license as Kohana.
illusorium/minion 适用场景与选型建议
illusorium/minion 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 34 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 06 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「task」 「kohana」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 illusorium/minion 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 illusorium/minion 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 illusorium/minion 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Geoip and IP integration
Jam Taxonomy
Admin Builder for Kohana, using Jam ORM
Add complex shipping to openbuildings/purchases package
A php port of jnicklas's capybara, and handles Functional / Integration testing
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-06-13