doorman

Child process management

  • 所有者: silverstripe/doorman
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Doorman

Build Status
Code Quality
Code Coverage
Version
License

Child process management. Compatible from PHP 5.3 to PHP 7. Needs no extensions.

2.x supports PHP 5.5.9 and upwards. If you need PHP 5.3/4 support, use a 1.x release.

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.

主要指标

概览
名称与所有者silverstripe/doorman
主编程语言PHP
编程语言PHP (语言数: 1)
平台
许可证Other
所有者活动
创建于2015-07-09 11:30:33
推送于2025-06-19 01:50:50
最后一次提交
发布数12
最新版本名称5.0.0 (发布于 )
第一版名称1.0.0 (发布于 )
用户参与
星数321
关注者数19
派生数29
提交数86
已启用问题?
问题数21
打开的问题数12
拉请求数21
打开的拉请求数0
关闭的拉请求数11
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?