PHPackages                             aboutcoders/process-control - 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. aboutcoders/process-control

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

aboutcoders/process-control
===========================

A PHP process control library

1.3.2(9y ago)426.2k↓14.3%[1 issues](https://github.com/aboutcoders/process-control/issues)3MITPHPPHP &gt;=5.3

Since Apr 4Pushed 9y ago2 watchersCompare

[ Source](https://github.com/aboutcoders/process-control)[ Packagist](https://packagist.org/packages/aboutcoders/process-control)[ Docs](http://aboutcoders.com/)[ RSS](/packages/aboutcoders-process-control/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (9)Used By (3)

Process Control
===============

[](#process-control)

A PHP process control library.

Build Status: [![Build Status](https://camo.githubusercontent.com/49da5406003a4c0a8a4585cbe52a75196b4d561c766ba69daeb99af217623c04/68747470733a2f2f7472617669732d63692e6f72672f61626f7574636f646572732f70726f636573732d636f6e74726f6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/aboutcoders/process-control)

The interface
-------------

[](#the-interface)

The [ControllerInterface](./src/ControllerInterface.php) defines the method doExit() that indicates whether to exist a process.

```
interface ControllerInterface
{
    /**
     * Indicates whether to exit a process
     *
     * @return boolean
     */
    public function doExit();
}
```

The PcntlController
-------------------

[](#the-pcntlcontroller)

The [PcntlController](./src/PcntlController.php) listens to PCNTL events to determine whether to exit a process.

```
    $stopsignals = array(SIGTERM);
    $logger = new Psr\Log\NullLogger();

    $controller = new PcntlController($stopsignals, $logger);

    while(!$controller->doExit())
    {
        // do something
    }
```

The ChainController
-------------------

[](#the-chaincontroller)

The [ChainController](./src/ChainController.php) executes multiple controllers in a chain to determine whether to exit a process.

The NullController
------------------

[](#the-nullcontroller)

The [NullController](./src/NullController.php) never indicates to exit a process.

**Note: This controller can be used as fallback controller for the PcntlController in runtime environments where PCNTL functions to not exist.**

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

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

Recently: every ~54 days

Total

8

Last Release

3473d ago

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

1.1.0PHP &gt;=5.4.0

1.2.2PHP &gt;=5.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11329553?v=4)[AboutCoders](/maintainers/aboutcoders)[@aboutcoders](https://github.com/aboutcoders)

---

Top Contributors

[![hrba](https://avatars.githubusercontent.com/u/2995275?v=4)](https://github.com/hrba "hrba (1 commits)")

---

Tags

signalprocesscontrollercontrolpcntliteration

### Embed Badge

![Health badge](/badges/aboutcoders-process-control/health.svg)

```
[![Health](https://phpackages.com/badges/aboutcoders-process-control/health.svg)](https://phpackages.com/packages/aboutcoders-process-control)
```

###  Alternatives

[symfony/lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource

514139.2M692](/packages/symfony-lock)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[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)
