PHP code example of dflourusso / php-background-proccess

1. Go to this page and download the library: Download dflourusso/php-background-proccess 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/ */

    

dflourusso / php-background-proccess example snippets


$bg = new BackgroundProccess('teste', __DIR__ . '/tmp/background-proccess');

$bg->run(__DIR__ . '/bin/test_bg_task.php');