PHP code example of jtrw / posix-signal-handler
1. Go to this page and download the library: Download jtrw/posix-signal-handler library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jtrw / posix-signal-handler example snippets
declare(ticks = 1);
PosixSignal\SignalHandler();
while (true) {
$this->doSomething(); //Your Business logic
$signal->terminate();
}