PHPackages                             skie/signal\_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. [CLI &amp; Console](/categories/cli)
4. /
5. skie/signal\_handler

ActiveCakephp-plugin[CLI &amp; Console](/categories/cli)

skie/signal\_handler
====================

Cross-platform signal handling for CakePHP console commands with zero external dependencies. Supports Linux (pcntl), Windows (native API)

1.0.1(4mo ago)34694MITPHPPHP &gt;=8.1CI failing

Since Jul 13Pushed 4mo agoCompare

[ Source](https://github.com/skie/SignalHandler)[ Packagist](https://packagist.org/packages/skie/signal_handler)[ Docs](https://github.com/skie/SignalHandler)[ RSS](/packages/skie-signal-handler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (4)

SignalHandler Plugin
====================

[](#signalhandler-plugin)

The **SignalHandler** plugin provides cross-platform signal handling for CakePHP console commands with the following features:

- Cross-platform signal handling (Linux, Windows, macOS)
- Graceful command termination with Ctrl+C and other signals
- Zero external dependencies - pure CakePHP implementation
- CakePHP event system integration
- Automatic signal handler registration and cleanup
- Support for long-running commands and infinite loops
- React event loop integration support

The plugin is designed to provide signal handling capabilities following 2 approaches:

- Quick drop-in solution for existing commands. Add signal handling in minutes.
- Extensible solution for custom signal handling. You can extend:
    - SignalableCommandInterface for custom signal handling
    - SignalHandlerTrait for callback based signal handling
    - Custom signal event listeners
    - Platform-specific signal handlers

The plugin integrates seamlessly with CakePHP's console system and maintains zero external dependencies.

Requirements
------------

[](#requirements)

- CakePHP 5.0+
- PHP 8.4+

Documentation
-------------

[](#documentation)

For documentation, as well as tutorials, see the [Docs](docs/Home.md) directory of this repository.

License
-------

[](#license)

Licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance76

Regular maintenance activity

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

131d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1f53020a99b0b08cda73130f837f37cae2ae8420ff0cc4ceb650a733c4a1bd6?d=identicon)[skiedr](/maintainers/skiedr)

---

Top Contributors

[![skie](https://avatars.githubusercontent.com/u/130799?v=4)](https://github.com/skie "skie (3 commits)")

---

Tags

pluginconsolesignalcakephpcommandwindowscross-platformpcntl

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/skie-signal-handler/health.svg)

```
[![Health](https://phpackages.com/badges/skie-signal-handler/health.svg)](https://phpackages.com/packages/skie-signal-handler)
```

###  Alternatives

[helhum/typo3-console

A reliable and powerful command line interface for TYPO3 CMS

2939.0M192](/packages/helhum-typo3-console)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1862.1M27](/packages/dereuromark-cakephp-ide-helper)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)[phlib/console-process

Console implementation.

1833.5k2](/packages/phlib-console-process)

PHPackages © 2026

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