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

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

justinyost/cakephp-queue
========================

The Queue plugin for CakePHP provides deferred task execution, forked to support SQLite.

3.4.2(8y ago)0351MITPHPPHP &gt;=5.5

Since Dec 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/justinyost/cakephp-queue)[ Packagist](https://packagist.org/packages/justinyost/cakephp-queue)[ Docs](http://github.com/justinyost/cakephp-queue)[ RSS](/packages/justinyost-cakephp-queue/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (15)Used By (0)

CakePHP Queue Plugin
====================

[](#cakephp-queue-plugin)

This branch is for use with **CakePHP 3** and SQLite. It is a fork only for use to support SQLite, the real version of this package should be used at: .

Background
----------

[](#background)

This is a very simple and minimalistic job queue (or deferred-task) system for CakePHP. It is mainly **for demo purposes** on how queues work and doesn't have any dependencies.

Overall functionality is inspired by systems like Gearman, Beanstalk or dropr, but without any illusion to compete with these more advanced Systems.

The plugin is an attempt to provide a basic, simple to use method to enable deferred job execution, without the hassle of setting up or running an extra queue daemon, while integrating nicely into CakePHP and also simplifying the creation of worker scripts.

Please also read the [blog post](http://www.dereuromark.de/2013/12/22/queue-deferred-execution-in-cakephp/). For more robust and production use cases please see the [awesome list](https://github.com/FriendsOfCake/awesome-cakephp#queue).

### Why use deferred execution?

[](#why-use-deferred-execution)

Deferred execution makes sense (especially in PHP) when your page wants to execute tasks, which are not directly related to rendering the current page. For instance, in a BBS-type system, a new users post might require the creation of multiple personalized email messages, notifying other users of the new content. Creating and sending these emails is completely irrelevant to the currently active user, and should not increase page response time. Another example would be downloading, extraction and/or analyzing an external file per request of the user. The regular solution to these problems would be to create specialized cronjobs which use specific database states to determine which action should be done.

The Queue plugin provides a simple method to create and run such non-user-interaction-critical tasks.

While you can run multiple workers, and can (to some extent) spread these workers to different machines via a shared database, you should seriously consider using a more advanced system for high volume/high number of workers systems.

Installation and Usage
----------------------

[](#installation-and-usage)

See [Documentation](docs).

Limitation
----------

[](#limitation)

If you want to use multiple workers, please use only one per type. Currently it would otherwise risk the jobs being run multiple times!

History
-------

[](#history)

### Recent Improvements

[](#recent-improvements)

- QueuedJobs table instead of QueuedTasks (Tasks are the implementing classes only)
- json\_encode/decode instead of serialize
- Priority for jobs
- Transactions on getting a new job if supported from the database
- Code improvements, stricter typehinting

### And...

[](#and)

A huge thx to Max ([Dee-Fuse](https://github.com/Dee-Fuse)) for making the 3.x upgrade complete!

Modified by David Yell ([davidyell](https://github.com/davidyell))

- Basic CakePHP 3.x support

Modified by Mark Scherer ([dereuromark](https://github.com/dereuromark))

- CakePHP 2.x support
- Some minor fixes
- Added crontasks (as a different approach on specific problems)
- Possible (optional) Tools Plugin dependencies for frontend access via /admin/queue
- Config key "queue" is now "Queue" ($config\['Queue'\]\[...\])

Added by Christian Charukiewicz ([charukiewicz](https://github.com/charukiewicz)):

- Configuration option 'gcprop' is now 'gcprob'
- Fixed typo in README and variable name (Propability -&gt; Probability)
- Added a few lines about createJob() usage to README
- Added comments to queue.php explaining configuration options

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~72 days

Recently: every ~80 days

Total

14

Last Release

3230d ago

Major Versions

2.2.0 → 3.0.02015-10-30

2.3.0 → 3.1.02016-02-20

2.x-dev → 3.4.12017-06-27

PHP version history (4 changes)2.0.0PHP &gt;=5.3.0

2.2.0PHP &gt;=5.4.0

3.0.0PHP &gt;=5.4.16

3.4.0PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/58c6913a72757502a801ebc71f995eb1c4f7a53a7de7314a20b9a1f1d6131b60?d=identicon)[jtyost2](/maintainers/jtyost2)

---

Top Contributors

[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (61 commits)")[![MSeven](https://avatars.githubusercontent.com/u/31497?v=4)](https://github.com/MSeven "MSeven (37 commits)")[![houseoftech](https://avatars.githubusercontent.com/u/297458?v=4)](https://github.com/houseoftech "houseoftech (14 commits)")[![Graziel](https://avatars.githubusercontent.com/u/5963584?v=4)](https://github.com/Graziel "Graziel (12 commits)")[![drmonkeyninja](https://avatars.githubusercontent.com/u/357623?v=4)](https://github.com/drmonkeyninja "drmonkeyninja (8 commits)")[![netstyler](https://avatars.githubusercontent.com/u/319755?v=4)](https://github.com/netstyler "netstyler (8 commits)")[![TeckniX](https://avatars.githubusercontent.com/u/33699?v=4)](https://github.com/TeckniX "TeckniX (4 commits)")[![justinyost](https://avatars.githubusercontent.com/u/85320?v=4)](https://github.com/justinyost "justinyost (4 commits)")[![charukiewicz](https://avatars.githubusercontent.com/u/6189390?v=4)](https://github.com/charukiewicz "charukiewicz (4 commits)")[![lucatrev](https://avatars.githubusercontent.com/u/77144?v=4)](https://github.com/lucatrev "lucatrev (3 commits)")[![repher](https://avatars.githubusercontent.com/u/2478563?v=4)](https://github.com/repher "repher (3 commits)")[![dmromanov](https://avatars.githubusercontent.com/u/299059?v=4)](https://github.com/dmromanov "dmromanov (2 commits)")[![Spriz](https://avatars.githubusercontent.com/u/3512268?v=4)](https://github.com/Spriz "Spriz (2 commits)")[![suhaboncukcu](https://avatars.githubusercontent.com/u/2428828?v=4)](https://github.com/suhaboncukcu "suhaboncukcu (2 commits)")[![adayth](https://avatars.githubusercontent.com/u/1223929?v=4)](https://github.com/adayth "adayth (2 commits)")[![DeeFuse](https://avatars.githubusercontent.com/u/7376678?v=4)](https://github.com/DeeFuse "DeeFuse (2 commits)")[![AndersTrier](https://avatars.githubusercontent.com/u/384079?v=4)](https://github.com/AndersTrier "AndersTrier (2 commits)")[![kminek](https://avatars.githubusercontent.com/u/373962?v=4)](https://github.com/kminek "kminek (2 commits)")[![davidyell](https://avatars.githubusercontent.com/u/49889?v=4)](https://github.com/davidyell "davidyell (2 commits)")[![wreality](https://avatars.githubusercontent.com/u/463159?v=4)](https://github.com/wreality "wreality (1 commits)")

---

Tags

cakephpqueuebackgrounddeferred tasks

### Embed Badge

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

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

###  Alternatives

[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308850.3k14](/packages/dereuromark-cakephp-queue)[jms/job-queue-bundle

Allows to run and schedule Symfony console commands as background jobs.

3462.3M5](/packages/jms-job-queue-bundle)[lorenzo/cakephp-sqs

CakePHP Aws Simple Queue System

19302.4k](/packages/lorenzo-cakephp-sqs)

PHPackages © 2026

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