PHP code example of steadweb / nyx
1. Go to this page and download the library: Download steadweb/nyx 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/ */
steadweb / nyx example snippets
$ php /path/to/worker1.php
$ php /path/to/worker2.php
[*] Current PID: XXX
[+] Starting worker
[+] New process with command: php /path/to/worker/foo.php
[*] Workers started
[*] Handler registered
...
{
"path": "php foo.php"
}