mageok / cli-signal-handler
0.2
2023-06-30 08:43 UTC
Requires
- php: ^7.4 || ^8.0
This package is not auto-updated.
Last update: 2024-12-28 14:37:36 UTC
README
Sets or removes CTRL event handlers, which allows CLI processes to intercept or ignore CTRL+C and CTRL+BREAK events.
Installation
Install the package via composer
composer require mageok/cli-signal-handler
Documentation
use Mageok\CliSignalHandler\CliCtrlScheduler; CliCtrlScheduler::registerCtrlCEvent($handler1); CliCtrlScheduler::registerCtrlCEvent($handler2);