PHPackages                             sweikenb/pcntl - 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. sweikenb/pcntl

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

sweikenb/pcntl
==============

PCNTL process control library

v7.1.1(1y ago)313.5k↓31%MITPHPPHP ^8.2CI failing

Since May 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sweikenb/pcntl)[ Packagist](https://packagist.org/packages/sweikenb/pcntl)[ RSS](/packages/sweikenb-pcntl/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (13)Used By (0)

PCNTL Library
=============

[](#pcntl-library)

Simple and easy to use thread-based process manager for PHP based on default PCNTL and POSIX functions.

[![Build status](https://github.com/sweikenb/pcntl/actions/workflows/phpunit.yml/badge.svg)](https://github.com/sweikenb/pcntl/actions/workflows/phpunit.yml/badge.svg)

**Further information:**

- [Docs](https://sweikenb.github.io/pcntl/)
- [Changelog](CHANGELOG.md)
- [MIT License](LICENSE.txt)

Installation
------------

[](#installation)

```
composer require "sweikenb/pcntl"
```

Basic Usage
-----------

[](#basic-usage)

```
use Sweikenb\Library\Pcntl\ProcessManager;
use Sweikenb\Library\Pcntl\Api\ChildProcessInterface;
use Sweikenb\Library\Pcntl\Api\ParentProcessInterface;
use Sweikenb\Library\Pcntl\Api\ProcessOutputInterface;

$pm = new ProcessManager();
$pm->runProcess(function(ChildProcessInterface $child, ParentProcessInterface $parent, ProcessOutputInterface $output) {
    $output->stdout(sprintf('Hello World from PID: %d', $child->getId()));
});
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance46

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~178 days

Recently: every ~139 days

Total

11

Last Release

409d ago

Major Versions

v2.1.0 → v3.0.02022-09-16

v3.1.0 → v4.0.02023-09-02

v4.0.0 → v5.0.02023-09-23

v5.0.0 → v6.0.02023-09-30

v6.0.0 → v7.0.02024-07-20

PHP version history (5 changes)v1.0.0PHP ^7.2

v2.0.0PHP ^8.1

v3.1.0PHP ^8.1 | ^8.2

v4.0.0PHP &gt;=8.2

v7.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3d14640f5364ded9d425197636c706000f3012f350ef488806ebb72d9b9101e?d=identicon)[sweikenb](/maintainers/sweikenb)

---

Top Contributors

[![sweikenb](https://avatars.githubusercontent.com/u/366399?v=4)](https://github.com/sweikenb "sweikenb (13 commits)")

---

Tags

pcntlphpphp-libraryphp82posix

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sweikenb-pcntl/health.svg)

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

PHPackages © 2026

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