Download the PHP package genius13/codeigniter-job-queue-redis without Composer

On this page you can find all versions of the php package genius13/codeigniter-job-queue-redis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package codeigniter-job-queue-redis

Codeigniter-jobQueue

Job Queue based on redis and mcurl

by Marcos Sanz

Feel free to send me an email if you have any problems or you find bugs.

Installation

First of all, you have to install codeigniter-redis library, and codeigniter-mcurl library. Just copy the files from this package to the correspoding folder in your application folder. For example, /application/libraries/jobs.php.

Loading library

In /application/config/autoload.php

$autoload['libraries'] = array('jobs');

or

$this -> load -> library('jobs');

Application Usage

Variables:

Create new job

Function:

create($queue, $controller, $method, $params, $description, $belongTo)

For example:

$this -> jobs -> create('high', 'users', 'check_users', array('10'), 'checkUsers','1');

Create new schedule job

Function:

create_at($at, $queue, $controller, $method, $params, $description, $belongTo)

For example:

$this -> jobs -> create_at(1353456000, 'high', 'users', 'check_users', array('10'), 'checkUsers','1');

Get size from a given queue

Function:

get_queue_size($queue)

For example:

$this -> jobs -> get_queue_size('low');

Get size from the delayed queue

Function:

get_delayed_queue_size()

For example:

$this -> jobs -> get_delayed_queue_size();

Get size from the delated queue in a given timestamp

Function:

get_delayed_timestamp_size($timestamp)

For example:

$this -> jobs -> get_delayed_timestamp_size(1353456000);

Clear a queue

Function:

clear($queue)

For example:

$this -> jobs -> clear('low');

Destroy a queue

Function:

destroy($queue)

For example:

$this -> jobs -> destroy('low');

Remove a job

Function:

//TODO

Get peek from a given queue

Function:

peek($queue)

For example:

$this -> jobs -> peek('low');

Get queues memebers

Function:

queues()

For example:

$this -> jobs -> queues();

Get workers and current job in the worker

Function:

get_workers()

For example:

$this -> jobs -> get_workers();

Get jobs statuses or get jobs statuses from a user

Function:

get_statuses_jobs($user_id)

For example:

$this -> jobs -> get_statuses_jobs(); or $this -> jobs -> get_statuses_jobs(2341);

Get number of stats from a given stat

Function:

get_stat($stat)

For example:

$this -> jobs -> get_stat('running');

Clear stat

Function:

clear_stat()

For example:

$this -> jobs -> clear_stat();

Worker Usage

Variables:

Main worker (Execute jobs)

Function:

worker($worker_name, $queues, $interval)

Delayed worker (Re-organize schedule jobs)

Function:

worker_delayed($worker_name, $interval)

Thanks,
-Marcos Sanz
[email protected]
@marsanla


All versions of codeigniter-job-queue-redis with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package genius13/codeigniter-job-queue-redis contains the following files

Loading the files please wait ....