PHP code example of synergitech / queue
1. Go to this page and download the library: Download synergitech/queue 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/ */
synergitech / queue example snippets
class MyTask
{
public static function sum(...$args)
{
return array_sum($args);
}
}
Queue\Task::enqueue([MyTask::class, 'sum'], [2, 4], 3); # 6