1. Go to this page and download the library: Download mallabee/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/ */
mallabee / queue example snippets
use Mallabee\Queue\Core\Manager as Queue;
$queue = new Queue;
$instance = $queue->configure('beanstalkd', [
'host' => 'localhost',
'queue' => 'default',
]);
// If you like - set last configured instance as global
$queue->setAsGlobal();
// As an instance...
$queue->push('SendEmail', array('message' => $message));
// If setAsGlobal has been called...
Queue::push('SendEmail', array('message' => $message));
use Mallabee\Queue\Core\Manager as Queue;
$queue = new Queue;
$this->registerDriver('mycustomdriver', new \Drivers\MyCustomDriver\MyCustomDriverConnector());
$instance = $queue->configure('mycustomdriver', [
'host' => 'localhost',
'queue' => 'default',
]);
// If you like - set last configured instance as global
$queue->setAsGlobal();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.