PHP code example of drlenux / micro-visor
1. Go to this page and download the library: Download drlenux/micro-visor 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/ */
drlenux / micro-visor example snippets
return [
'timeout' => 0.1,
'services' => [
'service-name' => [
'cmd' => 'shell command'
'timeout' => 3, // second
'thread' => 2
]
]
];
shell
php ./bin/console.php