ride/lib-queue-beanstalkd

Beanstalkd implementation of the queue library

1.0.0 2016-10-13 12:26 UTC

This package is auto-updated.

Last update: 2024-04-12 23:38:41 UTC


README

Beanstalkd implementation for the queue library of the PHP Ride framework.

This implementation could not implement an overview of the waiting queue jobs nor updating the status since Beanstalkd does not support this.

Code Sample

Check this code sample to see how to initialize this library:

<?php

use ride\library\queue\BeanstalkdFactory;
use ride\library\queue\BeanstalkdQueueManager;

function createQueueManager() {
    $factory = new BeanstalkdFactory();
    
    $client = $factory->createClient('localhost', 11300);
    
    $queueManager = new BeanstalkdQueueManager($client);
    
    return $queueManager;
}

Related Modules

You can check the following related modules to this library:

Installation

You can use Composer to install this library.

composer require ride/lib-queue