PHPackages                             oefenweb/cakephp-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. oefenweb/cakephp-queue

ActiveCakephp-plugin[Queues &amp; Workers](/categories/queues)

oefenweb/cakephp-queue
======================

A minimalistic Queue Plugin for CakePHP

v3.1.3(3y ago)032.9k↓33.3%2[2 issues](https://github.com/Oefenweb/cakephp-queue/issues)MITPHPPHP &gt;=7.1

Since Dec 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Oefenweb/cakephp-queue)[ Packagist](https://packagist.org/packages/oefenweb/cakephp-queue)[ Docs](http://github.com/Oefenweb/cakephp-queue)[ RSS](/packages/oefenweb-cakephp-queue/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (34)Used By (0)

Queue plugin for CakePHP
========================

[](#queue-plugin-for-cakephp)

[![Build Status](https://camo.githubusercontent.com/371a09f1a42d7c0b8e7ff15570507a36d9dc4d551bc7cd24904bd20f74f17733/68747470733a2f2f7472617669732d63692e6f72672f4f6566656e7765622f63616b657068702d71756575652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Oefenweb/cakephp-queue)[![PHP 7 ready](https://camo.githubusercontent.com/648d54960041714011c714b4f23a96d154c874dd248cb78a32020844d6ad9aea/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f4f6566656e7765622f63616b657068702d71756575652f62616467652e737667)](https://travis-ci.org/Oefenweb/cakephp-queue)[![Coverage Status](https://camo.githubusercontent.com/6c60d98939b9a81788d4763e5679e80b8723929046959093c51dd2d64997629c/68747470733a2f2f636f6465636f762e696f2f67682f4f6566656e7765622f63616b657068702d71756575652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Oefenweb/cakephp-queue)[![Packagist downloads](https://camo.githubusercontent.com/36989db8088e8566893185088d94b905ba74463b6596e29840429abc34b96014/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4f6566656e7765622f63616b657068702d71756575652e737667)](https://packagist.org/packages/oefenweb/cakephp-queue)[![Code Climate](https://camo.githubusercontent.com/938e2538c6d1671e245948d51d7b4440e51e5ff02130b0b7d3a7bd6f87d25536/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4f6566656e7765622f63616b657068702d71756575652f6261646765732f6770612e737667)](https://codeclimate.com/github/Oefenweb/cakephp-queue)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/00684f97b1a629e1882076fbb6c32a583e53cff868c95b3080c993e835ffa563/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4f6566656e7765622f63616b657068702d71756575652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Oefenweb/cakephp-queue/?branch=master)

Requirements
------------

[](#requirements)

- CakePHP 2.9.0 or greater.
- PHP 7.0.0 or greater.

Installation
------------

[](#installation)

Clone/Copy the files in this directory into `app/Plugin/Queue`

Configuration
-------------

[](#configuration)

Ensure the plugin is loaded in `app/Config/bootstrap.php` by calling:

```
CakePlugin::load('Queue');

```

Ensure to configure the following lines in `app/Config/bootstrap.php`:

```
Configure::write('Queue.workers', 3);
Configure::write('Queue.sleepTime', 10);
Configure::write('Queue.gcprop', 10);
Configure::write('Queue.defaultWorkerTimeout', 2 * MINUTE);
Configure::write('Queue.defaultWorkerRetries', 4);
Configure::write('Queue.workerMaxRuntime', 0);
Configure::write('Queue.cleanupTimeout', DAY);
Configure::write('Queue.exitWhenNothingToDo', false);
Configure::write('Queue.gcOnExit', true);

```

Load schema:

```
Console/cake schema create;

```

Usage
-----

[](#usage)

### Console

[](#console)

Run from your APP folder:

```
# Tries to call the `add()` function on a task.
Console/cake Queue.queue add ;

```

```
# Run a queue worker.
Console/cake Queue.queue runworker;

```

```
# Display some general statistics.
Console/cake Queue.queue stats;

```

```
# Manually call cleanup function to delete task data of completed tasks.
Console/cake Queue.queue clean;

```

```
# Manually call cleanup_failed function to delete task data of failed tasks.
Console/cake Queue.queue clean_failed;

```

#### Running only specific tasks per worker

[](#running-only-specific-tasks-per-worker)

You can filter "running" by type:

```
Console/cake Queue.queue runworker -t MyType,AnotherType,-ThisOneToo
Console/cake Queue.queue runworker -t "-ThisOneNot"

```

Use `-` prefix to exclude. Note that you might need to use `""` around the value then to avoid it being seen as option key.

That can be helpful when migrating servers and you only want to execute certain ones on the new system or want to test specific servers.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

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

Every ~92 days

Recently: every ~221 days

Total

33

Last Release

1217d ago

Major Versions

v1.5.1 → v2.0.02019-01-23

v2.0.0 → v3.0.02019-06-25

v2.1.2 → v3.0.12019-10-15

v2.2.0 → v3.0.22020-01-17

v2.3.3 → v3.1.12020-08-17

PHP version history (4 changes)v1.0.0PHP &gt;=5.3.10

v1.4.0PHP &gt;=5.4.16

v2.0.0PHP &gt;=7.0.0

v3.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/8408dd4d7c016002e99aa4bdb978519a5a1966ce14f7afc90b5830dbe864500a?d=identicon)[oefenweb](/maintainers/oefenweb)

---

Top Contributors

[![tersmitten](https://avatars.githubusercontent.com/u/3392962?v=4)](https://github.com/tersmitten "tersmitten (116 commits)")[![mvdriel](https://avatars.githubusercontent.com/u/408052?v=4)](https://github.com/mvdriel "mvdriel (13 commits)")

---

Tags

cakephpcakephp2phppluginqueuecakephpqueue

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/oefenweb-cakephp-queue/health.svg)

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

###  Alternatives

[php-amqplib/php-amqplib

Formerly videlalvaro/php-amqplib. This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.

4.6k125.3M879](/packages/php-amqplib-php-amqplib)[ramsey/collection

A PHP library for representing and manipulating collections.

1.2k486.0M69](/packages/ramsey-collection)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308850.3k14](/packages/dereuromark-cakephp-queue)[queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

48030.5M87](/packages/queue-interop-queue-interop)[lorenzo/cakephp-sqs

CakePHP Aws Simple Queue System

19302.4k](/packages/lorenzo-cakephp-sqs)[phootwork/collection

The phootwork library fills gaps in the php language and provides better solutions than the existing ones php offers.

3924.8M15](/packages/phootwork-collection)

PHPackages © 2026

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