PHP code example of filippo-toso / php-supervisor

1. Go to this page and download the library: Download filippo-toso/php-supervisor 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/ */

    

filippo-toso / php-supervisor example snippets


composer 

use FilippoToso\PhpSupervisor\Supervisor;

Supervisor::run(function() {
    // Do your long lived stuff here    
}, __DIR__ . '/lock.dat', __DIR__ . '/stop.dat');