1. Go to this page and download the library: Download solophp/task-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/ */
solophp / task-queue example snippets
use Solo\Queue\TaskQueue;
$queue = new TaskQueue($db, table: 'tasks', maxRetries: 5, deleteOnSuccess: true);
$queue->install(); // creates the tasks table if not exists
$taskId = $queue->addTask(
'email_notification',
['type' => 'email_notification', 'user_id' => 123, 'template' => 'welcome'],
new DateTimeImmutable('tomorrow') // optional, defaults to now
);