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

Abandoned → [werkint/react-pcntl](/?search=werkint%2Freact-pcntl)Library[Utility &amp; Helpers](/categories/utility)

werkint/react-pcntl
===================

PCNTL bindings for ReactPHP

v2.1.0(10y ago)130MITPHPPHP &gt;=5.4

Since Nov 9Pushed 8y ago4 watchersCompare

[ Source](https://github.com/Werkint/react-pcntl)[ Packagist](https://packagist.org/packages/werkint/react-pcntl)[ RSS](/packages/werkint-react-pcntl/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (8)Used By (0)

React-PCNTL
===========

[](#react-pcntl)

[![Build Status](https://camo.githubusercontent.com/3f0e810ec318cc34f1f82e7e523129a14ce4fbd1833d5aa66a7f46265c6b8196/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d6b7261656d65722f72656163742d70636e746c2e706e67)](http://travis-ci.org/mkraemer/react-pcntl)[![Coverage Status](https://camo.githubusercontent.com/700969cbb5ea537518a86e9ed2e2ae8e3e34add54550bcc670d1fd5181cf45fd/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d6b7261656d65722f72656163742d70636e746c2f62616467652e7376673f6272616e63683d746573742d636f7665726167652d636f766572616c6c73)](https://coveralls.io/github/mkraemer/react-pcntl?branch=test-coverage-coveralls)

Basic PCNTL bindings for [React PHP](https://github.com/reactphp).

\##Install

The best way to install this library is through [composer](http://getcomposer.org):

```
{
    "require": {
        "mkraemer/react-pcntl": "2.1.*"
    }
}
```

This library depends on the [PCNTL extension](http://www.php.net/manual/en/book.pcntl.php). **Note:** version 2 of this library requires PHP &gt;= 5.4. If you are using PHP 5.3, use the `1.0.*` version:

```
{
    "require": {
        "mkraemer/react-pcntl": "1.0.*"
    }
}
```

Usage
-----

[](#usage)

This library provides the PCNTL class which taskes an event loop and optionally the timer interval in which the PCNTL signals should be read as constructor arguments. After initializing the class, you can use the on() method to register event listeners to PCNTL signals.

```
$loop = React\EventLoop\Factory::create();
$pcntl = new MKraemer\ReactPCNTL\PCNTL($loop);

$pcntl->on(SIGTERM, function () {
    // Clear some queue
    // Write syslog
    // Do ALL the stuff
    echo 'Bye'.PHP_EOL;
    die();
});

$pcntl->on(SIGINT, function () {
    echo 'Terminated by console'.PHP_EOL;
    die();
});

echo 'Started as PID '.getmypid().PHP_EOL;
$loop->run();
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 81.8% 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 ~305 days

Total

4

Last Release

3702d ago

Major Versions

v1.0.0 → v2.0.02014-08-26

1.0.x-dev → v2.1.02016-05-12

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v2.1.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/533d0c99c4e0c7413a1dcce2d81c37ecf94883e6377d274d6f43247a399bb268?d=identicon)[nick4fake](/maintainers/nick4fake)

---

Top Contributors

[![mkraemer](https://avatars.githubusercontent.com/u/1070200?v=4)](https://github.com/mkraemer "mkraemer (18 commits)")[![ahmader](https://avatars.githubusercontent.com/u/2225278?v=4)](https://github.com/ahmader "ahmader (1 commits)")[![christiaan](https://avatars.githubusercontent.com/u/118490?v=4)](https://github.com/christiaan "christiaan (1 commits)")[![clue](https://avatars.githubusercontent.com/u/776829?v=4)](https://github.com/clue "clue (1 commits)")[![krzysztof-sikorski](https://avatars.githubusercontent.com/u/4456257?v=4)](https://github.com/krzysztof-sikorski "krzysztof-sikorski (1 commits)")

---

Tags

reactpcntl

### Embed Badge

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

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M24.5k](/packages/friendsofphp-php-cs-fixer)[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

43.2k341.0k1](/packages/ccxt-ccxt)[mkraemer/react-pcntl

PCNTL bindings for ReactPHP

58290.7k9](/packages/mkraemer-react-pcntl)[ijpatricio/mingle

Use Vue and React in Laravel Livewire Applications.

43970.0k2](/packages/ijpatricio-mingle)[talyssonoc/react-laravel

Package to use ReactJS with Laravel

8934.9k](/packages/talyssonoc-react-laravel)[duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

81574.0k4](/packages/duncan3dc-fork-helper)

PHPackages © 2026

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