1. Go to this page and download the library: Download zoon/requeue 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/ */
zoon / requeue example snippets
$redis = new \Redis();
if (!$redis->connect('127.0.0.1')) {
exit('no connection');
}
$queue = createQueue($redis);
function createQueue(\Redis $connection): \Zoon\ReQueue\Queue {
$redisAdapter = new \Zoon\ReQueue\RedisAdapter($connection);
return new \Zoon\ReQueue\Queue($redisAdapter);
}