PHPackages                             thruster/process-exit-handler - 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. thruster/process-exit-handler

ActiveLibrary

thruster/process-exit-handler
=============================

Thruster ProcessExitHandler Component

1.0.0(10y ago)08MITPHPPHP &gt;=7.0

Since Jan 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ThrusterIO/process-exit-handler)[ Packagist](https://packagist.org/packages/thruster/process-exit-handler)[ Docs](https://thruster.io)[ RSS](/packages/thruster-process-exit-handler/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

ProcessExitHandler Component
============================

[](#processexithandler-component)

\[[![Latest Version](https://camo.githubusercontent.com/b44022d23d52f9ad85955a47376ae0a24e0f18fa89c84bd21cbed699282cb698/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f5468727573746572494f2f70726f636573732d657869742d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/b44022d23d52f9ad85955a47376ae0a24e0f18fa89c84bd21cbed699282cb698/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f5468727573746572494f2f70726f636573732d657869742d68616e646c65722e7376673f7374796c653d666c61742d737175617265)\] () \[[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)\] (LICENSE) \[[![Build Status](https://camo.githubusercontent.com/b4682e37e235445dbb5d47c2dd74197946bdb29ba72637430c789d0b6c7d32d2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5468727573746572494f2f70726f636573732d657869742d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/b4682e37e235445dbb5d47c2dd74197946bdb29ba72637430c789d0b6c7d32d2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5468727573746572494f2f70726f636573732d657869742d68616e646c65722e7376673f7374796c653d666c61742d737175617265)\] () \[[![Code Coverage](https://camo.githubusercontent.com/f6c5f349a0ec8146203b3bd45f7713b04d4ba1d7c3c7c08110d018ed3624aae3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f5468727573746572494f2f70726f636573732d657869742d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/f6c5f349a0ec8146203b3bd45f7713b04d4ba1d7c3c7c08110d018ed3624aae3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f5468727573746572494f2f70726f636573732d657869742d68616e646c65722e7376673f7374796c653d666c61742d737175617265)\] () \[[![Quality Score](https://camo.githubusercontent.com/c7043b1e2f6b3dc22e037b7447942c0891a0521ee19782cee1420bd53229a5fd/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f5468727573746572494f2f70726f636573732d657869742d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/c7043b1e2f6b3dc22e037b7447942c0891a0521ee19782cee1420bd53229a5fd/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f5468727573746572494f2f70726f636573732d657869742d68616e646c65722e7376673f7374796c653d666c61742d737175617265)\] () \[[![Total Downloads](https://camo.githubusercontent.com/daa04fd34a9ec45538d94ff7cd4d9dee46fc17bf822f7a196059f5171e68cd34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74687275737465722f70726f636573732d657869742d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/daa04fd34a9ec45538d94ff7cd4d9dee46fc17bf822f7a196059f5171e68cd34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74687275737465722f70726f636573732d657869742d68616e646c65722e7376673f7374796c653d666c61742d737175617265)\] ()

\[[![Email](https://camo.githubusercontent.com/fc4998410b6b71d697bf556c37294970fedc130c081c82698cdb5ca22d70cade/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f656d61696c2d7465616d4074687275737465722e696f2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/fc4998410b6b71d697bf556c37294970fedc130c081c82698cdb5ca22d70cade/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f656d61696c2d7465616d4074687275737465722e696f2d626c75652e7376673f7374796c653d666c61742d737175617265)\] ()

The Thruster ProcessExitHandler Component. Handles all sub-process exits

Install
-------

[](#install)

Via Composer

```
$ composer require thruster/process-exit-handler
```

Usage
-----

[](#usage)

```
use Thruster\Component\EventLoop\EventLoop;
use Thruster\Component\ProcessExitHandler\ExitHandler;
use Thruster\Component\ProcessExitHandler\ExitEvent;

$loop = new EventLoop();
$exitHandler = new ExitHandler($loop);

$exitHandler->addHandler(function (ExitEvent $event) {
    // ... Handle event
});

$loop->run();
```

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

License
-------

[](#license)

Please see [License File](LICENSE) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3776d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/770bae1f46ac2b4536db820b8642491c25e2e2fd44e761110269e4722679a80d?d=identicon)[aurimasniekis](/maintainers/aurimasniekis)

---

Tags

processexitthrusterprocess-exit-handlerprocessexithandler

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thruster-process-exit-handler/health.svg)

```
[![Health](https://phpackages.com/badges/thruster-process-exit-handler/health.svg)](https://phpackages.com/packages/thruster-process-exit-handler)
```

###  Alternatives

[phpunit/php-invoker

Invoke callables with a timeout

1.3k540.0M285](/packages/phpunit-php-invoker)[hhxsv5/laravel-s

🚀 LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

3.9k676.0k10](/packages/hhxsv5-laravel-s)[react/child-process

Event-driven library for executing child processes with ReactPHP.

34076.1M136](/packages/react-child-process)[cocur/background-process

Start processes in the background that continue running when the PHP process exists.

2971.9M12](/packages/cocur-background-process)[titasgailius/terminal

Terminal is an Elegent wrapper around Symfony's Process component.

512340.9k11](/packages/titasgailius-terminal)[phpmentors/workflower

A BPMN 2.0 workflow engine for PHP

70652.9k4](/packages/phpmentors-workflower)

PHPackages © 2026

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