PHPackages                             genius13/codeigniter-job-queue-redis - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. genius13/codeigniter-job-queue-redis

ActiveLibrary[Caching](/categories/caching)

genius13/codeigniter-job-queue-redis
====================================

Job Queue based on redis

0.1(11y ago)5911728[4 issues](https://github.com/marsanla/Codeigniter-jobQueue/issues)[1 PRs](https://github.com/marsanla/Codeigniter-jobQueue/pulls)MITPHPPHP &gt;=5.3.0

Since Sep 16Pushed 8y ago8 watchersCompare

[ Source](https://github.com/marsanla/Codeigniter-jobQueue)[ Packagist](https://packagist.org/packages/genius13/codeigniter-job-queue-redis)[ Docs](https://github.com/marsanla/Codeigniter-jobQueue)[ RSS](/packages/genius13-codeigniter-job-queue-redis/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

\#Codeigniter-jobQueue ###Job Queue based on redis and mcurl by [Marcos Sanz](http://www.mistersanz.com)

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](http://github.com/joelcox/codeigniter-redis) library, and [codeigniter-mcurl](http://github.com/chadhutchins/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:

- $at ($timestamp) =&gt; Unix timestamp when you want to execute the job
- $queue =&gt; Name of the queue. For example: high, normal, low, mail, archive
- $controller =&gt; Name of the controller
- $method =&gt; Name of the method from controller (Default: index)
- $params =&gt; Array of params (Default: null). For example: array('param1','param2','param3')
- $description =&gt; Description of the task (Default: null). For example: UpdateUserProfile
- $belongTo ($user\_id) =&gt; Id user from the job (Default: null).
- $stat =&gt; Jobs stats. For example: delayed, waiting, running, complete and failed

\###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:

- $worker\_name =&gt; Name of the machine or worker (Default: worker)
- $queues =&gt; Name of the queues. For example: high
- $interval =&gt; Seconds to sleep worker (Default: null)

\###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

@marsanla

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4254d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/117f98f3c81d3716ec04ab5dbd8eb6bf413b63d51653f885f1bea78afe7557af?d=identicon)[marsanla](/maintainers/marsanla)

---

Top Contributors

[![marsanla](https://avatars.githubusercontent.com/u/1122550?v=4)](https://github.com/marsanla "marsanla (10 commits)")

---

Tags

redisqueuejob

### Embed Badge

![Health badge](/badges/genius13-codeigniter-job-queue-redis/health.svg)

```
[![Health](https://phpackages.com/badges/genius13-codeigniter-job-queue-redis/health.svg)](https://phpackages.com/packages/genius13-codeigniter-job-queue-redis)
```

###  Alternatives

[mjphaynes/php-resque

Redis backed library for creating background jobs and processing them later.

228199.3k2](/packages/mjphaynes-php-resque)[javibravo/simpleue

Php package to manage queue tasks in a simple way

130332.1k1](/packages/javibravo-simpleue)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
