PHP code example of fyre / queue
1. Go to this page and download the library: Download fyre/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/ */
fyre / queue example snippets
use Fyre\Queue\QueueManager;
QueueManager::clear();
$config = QueueManager::getConfig($key);
$config = QueueManager::getConfig();
$key = QueueManager::getKey($queue);
$hasConfig = QueueManager::hasConfig($key);
$isLoaded = QueueManager::isLoaded($key);
$queue = QueueManager::load($options);
QueueManager::push($className, $arguments, $options);
QueueManager::setConfig($key, $options);
QueueManager::setConfig($config);
$unloaded = QueueManager::unload($key);
$queue = QueueManager::use($key);
$queue->clear($queueName);
$queue->getListener();
$message = $queue->pop($queueName);
$queue->push($queueName, $message);
QueueManager::setConfig($key, $options);
$queue = QueueManager::use($key);
use Fyre\Queue\Worker;
$worker = new Worker($options);
$worker->run();
$listener->exception($message, $exception);
$listener->failure($message);
$listener->invalid($message);
$listener->start($message);
$listener->success($message);
use Fyre\Queue\Message;
$message = new Message($options);
$arguments = $message->getArguments();
$callback = $message->getCallback();
$config = $message->getConfig();
$hash = $message->getHash();
$isExpired = $message->isExpired();
$isReady = $message->isReady();
$isUnique = $message->isUnique();
$isValid = $message->isValid();