1. Go to this page and download the library: Download easyswoole/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/ */
easyswoole / queue example snippets
use EasySwoole\Queue\Driver\RedisQueue;
use EasySwoole\Queue\Queue;
use EasySwoole\Redis\Config;
$config = new Config([
'host'=>"",
'port'=>"",
'auth'=>""
]);
$driver = new RedisQueue($config);
$queue = new Queue($driver);