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)524.5k↓45.2%[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 1mo 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 77% of packages

Maintenance16

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

3426d 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

[duncan3dc/fork-helper

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

73548.0k4](/packages/duncan3dc-fork-helper)[react/child-process

Event-driven library for executing child processes with ReactPHP.

34076.1M136](/packages/react-child-process)[seld/signal-handler

Simple unix signal handler that silently fails where signals are not supported for easy cross-platform development

18271.3M19](/packages/seld-signal-handler)[arara/process

Provides a better API to work with processes on Unix-like systems

16861.7k2](/packages/arara-process)[formapro/pvm

The library provides us with a frame to build a workflow or a business process such as BPMN. Could execute tasks in parallel or delayed tasks

36723.8k](/packages/formapro-pvm)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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