PHPackages                             pahenrus/react-signals - 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. pahenrus/react-signals

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

pahenrus/react-signals
======================

Unix signals handling for ReactPHP

v1.0.1(10y ago)03.5k1MITPHP

Since Aug 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/pahenrus/react-signals)[ Packagist](https://packagist.org/packages/pahenrus/react-signals)[ RSS](/packages/pahenrus-react-signals/feed)WikiDiscussions master Synced 3w ago

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

React-Signals
=============

[](#react-signals)

Unix signals handler for [React PHP](https://github.com/reactphp).

\##Install

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

```
$ composer require pahenrus/react-signals
```

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();
$signalsHandler = new Reac\Signals\Handler($loop);

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

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

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

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~244 days

Total

3

Last Release

3832d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6052195b05dd7b699d7d586093d74faa5cc740ca07907929ee66905b148b9e10?d=identicon)[Pavel Kozlov](/maintainers/Pavel%20Kozlov)

---

Top Contributors

[![mkraemer](https://avatars.githubusercontent.com/u/1070200?v=4)](https://github.com/mkraemer "mkraemer (10 commits)")[![pahenrus](https://avatars.githubusercontent.com/u/7957326?v=4)](https://github.com/pahenrus "pahenrus (3 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)")

---

Tags

reactpcntl

### Embed Badge

![Health badge](/badges/pahenrus-react-signals/health.svg)

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k245.4M23.9k](/packages/friendsofphp-php-cs-fixer)[mkraemer/react-pcntl

PCNTL bindings for ReactPHP

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

Use Vue and React in Laravel Livewire Applications.

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

73566.2k4](/packages/duncan3dc-fork-helper)[mkraemer/react-inotify

Inotify bindings for ReactPHP

4616.3k1](/packages/mkraemer-react-inotify)

PHPackages © 2026

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