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

ActiveProject

envoylope/pcntl
===============

v0.1.1(1y ago)04.5k↓25%MITPHPPHP &gt;=8.1CI passing

Since May 3Pushed 1y ago1 watchersCompare

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

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

Envoylope ext-pcntl
===================

[](#envoylope-ext-pcntl)

[![Build Status](https://github.com/envoylope/pcntl/workflows/CI/badge.svg)](https://github.com/envoylope/pcntl/actions?query=workflow%3ACI)

Transmits AMQP heartbeats for [Envoylope](https://github.com/envoylope) using SIGALRM [UNIX System V signals](https://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/signals.html) via [ext-pcntl](https://www.php.net/manual/en/book.pcntl.php).

Why?
----

[](#why)

`php-amqp`/`librabbitmq` does not fully support [AMQP heartbeats](https://www.rabbitmq.com/heartbeats.html), they are only supported during [blocking calls into the extension](https://github.com/php-amqp/php-amqp/tree/v1.11.0#persistent-connection). With `php-amqplib`, we're able to send heartbeats more regularly, using UNIX System V signals. This library provides its own signal-based heartbeat sender, using `pcntl_async_signals(...)`to allow for more frequent heartbeat handling, based on the logic in [php-amqplib's sender implementation](https://github.com/php-amqplib/php-amqplib/blob/v3.5.4/PhpAmqpLib/Connection/Heartbeat/PCNTLHeartbeatSender.php).

Note that the `php-fpm` SAPI is *not* supported by this scheduler, as it does not support the `ext-pcntl` PHP extension. If you are using `php-fpm`, see [Envoylope EventLoop](https://github.com/envoylope/event-loop).

Usage
-----

[](#usage)

Install with Composer alongside [php-amqp-compat](https://github.com/asmblah/php-amqp-compat):

```
$ composer require asmblah/php-amqp-compat
$ composer require envoylope/pcntl
```

### Configuring the bundle

[](#configuring-the-bundle)

(TODO)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance42

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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 ~273 days

Total

2

Last Release

472d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f40d7540e88cf43038b45f972b0f62231d53dc8400d1c532208ca1c9b125236?d=identicon)[asmblah](/maintainers/asmblah)

---

Top Contributors

[![asmblah](https://avatars.githubusercontent.com/u/1714005?v=4)](https://github.com/asmblah "asmblah (5 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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