PHPackages                             burriko/job-queue - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. burriko/job-queue

ActiveLibrary[Queues &amp; Workers](/categories/queues)

burriko/job-queue
=================

Library to process jobs using Beanstalk.

0.1.0(10y ago)019MITPHPPHP &gt;=5.4.0

Since Aug 28Pushed 10y ago2 watchersCompare

[ Source](https://github.com/burriko/job-queue)[ Packagist](https://packagist.org/packages/burriko/job-queue)[ Docs](https://github.com/burriko/job-queue)[ RSS](/packages/burriko-job-queue/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Job Queue
=========

[](#job-queue)

[![Build Status](https://camo.githubusercontent.com/da9d72a7802b3d830adbc9dc4fa935ceb1509cb46cb559ed6209facd8c33bed7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f677261656d65746169742f6a6f622d71756575652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/graemetait/job-queue)

Work in progress library to easily push jobs on to a queue so they can be processed outside of the web request. Currently only supports Beanstalk queues. API will break regularly until v1.

Usage
-----

[](#usage)

Firstly you need to create an instance of a Queue.

```
$pheanstalk = new Pheanstalk\Pheanstalk('localhost');
$queue = new JobQueue\BeanstalkQueue($pheanstalk, 'email_queue');

```

### Creating jobs

[](#creating-jobs)

You can then push Jobs on to the Queue.

```
$job = new JobQueue\Job('EmailClient', ['client_id' => $id]);
$queue->push($job);

```

This assumes that you have an `EmailClient` class with a method named `handle` that takes an argument of client\_id. This will be called later when the job is retrieved from the queue and executed.

### Processing the queue

[](#processing-the-queue)

This will listen for new jobs to be pushed to the queue, and then execute them.

```
$runner = new JobQueue\JobRunner();
$worker = new JobQueue\QueueWorker($queue, $runner);

$worker->processQueue();

```

To just process the next job you can do this.

```
$worker->processNextJob();

```

You can see what the QueueWorker is doing by passing in a logger that implements psr/log.

```
$runner = new JobQueue\JobRunner();
$logger = new Monolog\Logger('queue');
$worker = new JobQueue\QueueWorker($queue, $runner, $logger);

```

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.7% 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

3859d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4d8ab979ef086342115d4e6e70f88a34cbfd17968ea57e222b9ab0445bba791?d=identicon)[burriko](/maintainers/burriko)

---

Top Contributors

[![graemetait](https://avatars.githubusercontent.com/u/64014?v=4)](https://github.com/graemetait "graemetait (44 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/burriko-job-queue/health.svg)

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

###  Alternatives

[hyperf/amqp

A amqplib for hyperf.

241.2M47](/packages/hyperf-amqp)[amphp/cluster

Building multi-core network applications with PHP.

6224.1k](/packages/amphp-cluster)[workerman/rabbitmq

Asynchronous rabbitmq client for PHP based on workerman.

4212.9k6](/packages/workerman-rabbitmq)

PHPackages © 2026

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