PHPackages                             web2all/signal - 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. web2all/signal

ActiveLibrary[CLI &amp; Console](/categories/cli)

web2all/signal
==============

Web2All signal handling

1.0.1(8y ago)111MITPHPPHP &gt;=5.4

Since Dec 15Pushed 8y ago2 watchersCompare

[ Source](https://github.com/web2all/signal)[ Packagist](https://packagist.org/packages/web2all/signal)[ RSS](/packages/web2all-signal/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Web2All signal
==============

[](#web2all-signal)

This package can be used to easily enable signal handling in your commandline tool or daemon.

What does it do
---------------

[](#what-does-it-do)

Catch signals sent to your program and allow you to handle them. By default catch `kill -HUP`, `kill` and `ctrl-c`. It is intended for simple usage so you can gracefully shutdown your program.

Usage
-----

[](#usage)

```
$sh = new Web2All_Signal_Handler();
$sh->pcntlSignalSetup();
while(1){
  // do stuff
  sleep($time);
  // you must call pcntlSignalDispatch regulary (preferably after each sleep)
  // so all signals get handled. Signals will automatically interrupt the
  // php sleep() command.
  $sh->pcntlSignalDispatch();
  if ($sh->pcntlSignalReceived()) break;
}

```

License
-------

[](#license)

Web2All framework is open-sourced software licensed under the MIT license ([https://opensource.org/licenses/MIT](https://opensource.org/licenses/MIT "license")).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3119d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/212082?v=4)[Merijn](/maintainers/merijnvdk)[@merijnvdk](https://github.com/merijnvdk)

---

Top Contributors

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

---

Tags

shellsignalkillweb2all

### Embed Badge

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

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

###  Alternatives

[psy/psysh

An interactive shell for modern PHP.

9.8k569.8M788](/packages/psy-psysh)[mikehaertl/php-shellcommand

An object oriented interface to shell commands

32439.6M69](/packages/mikehaertl-php-shellcommand)[kevinlebrun/colors.php

Colors for PHP CLI scripts

3426.9M45](/packages/kevinlebrun-colorsphp)[mrrio/shellwrap

Use any command-line tool as a PHP function.

738210.3k2](/packages/mrrio-shellwrap)[misterion/ko-process

Simple pcntl fork wrapper and process manager

177340.8k6](/packages/misterion-ko-process)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24035.5k2](/packages/alecrabbit-php-console-spinner)

PHPackages © 2026

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