toan267/doorman
Composer 安装命令:
composer require toan267/doorman
包简介
Child process management
README 文档
README
Child process management. Compatible from PHP 5.3 to PHP 7. Needs no extensions.
2.xsupports PHP5.5.9and upwards. If you need PHP5.3/4support, use a1.xrelease.
Usage
use AsyncPHP\Doorman\Manager\ProcessManager; use AsyncPHP\Doorman\Task\ProcessCallbackTask; $task1 = new ProcessCallbackTask(function () { print "in task 1"; }); $task2 = new ProcessCallbackTask(function () { print "in task 2"; }); $manager = new ProcessManager(); $manager->addTask($task1); $manager->addTask($task2); while ($manager->tick()) { usleep(250); }
You can find more in-depth documentation in docs/en.
Want to know how it works, without digging through the code? Read this...
Motivation
There are many great libraries that do something similar to this. They usually require additional extensions. This library aims to make child process management simple, and supported everywhere.
Other great libraries that do similar stuff:
Versioning
This library follows Semver. According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library.
All methods, with public visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep protected methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading.
Thanks
I'd like to thank SilverStripe for letting me work on fun projects like this. Feel free to talk to me about using the framework and CMS or working at SilverStripe.
toan267/doorman 适用场景与选型建议
toan267/doorman 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 55 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 toan267/doorman 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 toan267/doorman 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 55
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-03