PHP code example of madesimple / task-worker

1. Go to this page and download the library: Download madesimple/task-worker 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/ */

    

madesimple / task-worker example snippets



class MyTask extends \MadeSimple\TaskWorker\Task
{
    protected $register = 'my_task';

    // ... rest of the class goes here
}

function (Task $task) {
    // logic goes here
}
bash
export $(cat examples/.env | xargs) && php examples/