PHPackages                             toan267/doorman - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. toan267/doorman

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

toan267/doorman
===============

Child process management

3.0.2(6y ago)055[1 issues](https://github.com/toan267/doorman/issues)MITPHPPHP &gt;=5.5.9

Since Jul 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/toan267/doorman)[ Packagist](https://packagist.org/packages/toan267/doorman)[ RSS](/packages/toan267-doorman/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (12)Used By (0)

Doorman
=======

[](#doorman)

[![Build Status](https://camo.githubusercontent.com/fde6cbdde8e495b184cfc8b0cd851454d4c214b33c0ac1d146a0b2a9da00b6f8/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f6173796e637068702f646f6f726d616e2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/asyncphp/doorman)[![Code Quality](https://camo.githubusercontent.com/157f722d790a6a1850c52acba290e33fdbe71e2ff229fc0adc40bde70b548526/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6173796e637068702f646f6f726d616e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/asyncphp/doorman)[![Code Coverage](https://camo.githubusercontent.com/1d4b50220f5f2e98879083047b706d383b3066587a89898f728f784f92a08974/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6173796e637068702f646f6f726d616e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/asyncphp/doorman)[![Version](https://camo.githubusercontent.com/bed3fab65baee92a43655433c54634be0e6940641478e44f33ef719dc70dac85/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6173796e637068702f646f6f726d616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/asyncphp/doorman)[![License](https://camo.githubusercontent.com/6f369ecac72cb78c0133c68ed94fedde54182da141d56ecbe24835f559661165/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6173796e637068702f646f6f726d616e2e7376673f7374796c653d666c61742d737175617265)](license.md)

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
-----

[](#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](docs/en/introduction.md).

Want to know how it works, without digging through the code? [Read this](https://medium.com/@assertchris/multi-process-php-94a4e5a4be05)...

Motivation
----------

[](#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:

- [React](https://github.com/reactphp/child-process)
- [Icicle](https://github.com/icicleio/concurrent)

Versioning
----------

[](#versioning)

This library follows [Semver](http://semver.org). 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
------

[](#thanks)

I'd like to thank [SilverStripe](http://www.silverstripe.com) for letting me work on fun projects like this. Feel free to talk to me about using the [framework and CMS](http://www.silverstripe.org) or [working at SilverStripe](http://www.silverstripe.com/who-we-are/#careers).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 92.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~186 days

Recently: every ~361 days

Total

9

Last Release

2459d ago

Major Versions

1.x-dev → 2.0.02015-09-04

2.0.0 → 3.0.02015-12-06

PHP version history (2 changes)1.0.0PHP &gt;=5.3.3

2.0.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a92ab2e4ba707aab7469ec67d94f46370ed8464eeaa70604623faeae601e35b?d=identicon)[toan267](/maintainers/toan267)

---

Top Contributors

[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (50 commits)")[![toan267](https://avatars.githubusercontent.com/u/7765293?v=4)](https://github.com/toan267 "toan267 (2 commits)")[![josegonzalez](https://avatars.githubusercontent.com/u/65675?v=4)](https://github.com/josegonzalez "josegonzalez (1 commits)")[![rkrx](https://avatars.githubusercontent.com/u/5672982?v=4)](https://github.com/rkrx "rkrx (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/toan267-doorman/health.svg)

```
[![Health](https://phpackages.com/badges/toan267-doorman/health.svg)](https://phpackages.com/packages/toan267-doorman)
```

###  Alternatives

[thinkcmf/cmf-swoole

Swoole extend for ThinkCMF5.1

371.8k](/packages/thinkcmf-cmf-swoole)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
