PHPackages                             scones/resque - 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. scones/resque

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

scones/resque
=============

resque (for php) is a Redis-backed library for creating background jobs, placing them on multiple queues, and processing them later. compatible to the original http://resque.github.io/

1.0.10(6y ago)39012MITPHPPHP ~7.2

Since Oct 21Pushed 6y ago2 watchersCompare

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

READMEChangelogDependencies (6)Versions (12)Used By (2)

[![Build Status](https://camo.githubusercontent.com/fd72514556987de4b886867db935dd3f41d1085b9247e289fc22fdd44485913b/68747470733a2f2f7472617669732d63692e636f6d2f73636f6e65732f7265737175652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/scones/resque)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/59044c34a7ac5caabe1afc82ad735797b90ac79492aafa27b86d4f974f54d17f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73636f6e65732f7265737175652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/scones/resque/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/4f7815818523c38c1e45ad4493c32bffa146e1acdfdc743c65ddedd5adf981c5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73636f6e65732f7265737175652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/scones/resque/?branch=master)

Resque
======

[](#resque)

PHP implementation of the resque mechanism.

This is a completely new implementation featuring things as

- no static methods
- minimalistic dependencies (only core features for the asynchronous task processing)
- good coding standards
- psr events as tasks, thus the behavior can be modified
- strict typing

Install
-------

[](#install)

In most cases it should suffice to just install it via composer.

`composer require scones/resque "*@stable"`

How does it work?
-----------------

[](#how-does-it-work)

The resque task processing is a decentral queueing system. (read: no master server or similar) There are two parts to the processing, pushing jobs and working job. Those should not run in the same application or at least process to gain the most benefit from it.

### pushing jobs

[](#pushing-jobs)

The first step to process a job is to put it on the queue. Assuming you have the resque class already instantiated, you'd be just calling `$resque->enqueue('SomeClass', ['some' => 'data'], 'some_queue')`

This method puts the task on the queue and returns. It will not process it, as it is not its job. The data is stored (in a very precise format) in a redis database.

### working jobs

[](#working-jobs)

The second step to process a job is the worker. The worker is an process running anywhere with access to the same redis database.

The worker waits new entries in the configured queues and fetches one, as soon as it's available. When this happens, it builds the corresponding class (from the supplied container/servicelocator, see examples) and invokes `perform` with the array provided in enqueue as arguments.

Examples
--------

[](#examples)

Find runnable usage examples under

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

11

Last Release

2544d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/472339?v=4)[Lord Dirk Gustke](/maintainers/scones)[@scones](https://github.com/scones)

---

Tags

queuemessage queueresqueTaskspsr-12task-queue

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/scones-resque/health.svg)

```
[![Health](https://phpackages.com/badges/scones-resque/health.svg)](https://phpackages.com/packages/scones-resque)
```

###  Alternatives

[queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

48030.5M87](/packages/queue-interop-queue-interop)[bschmitt/laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages

2752.3M7](/packages/bschmitt-laravel-amqp)[clue/mq-react

Mini Queue, the lightweight in-memory message queue to concurrently do many (but not too many) things at once, built on top of ReactPHP

144691.7k4](/packages/clue-mq-react)[iamfarhad/laravel-rabbitmq

A robust RabbitMQ driver for Laravel Queue with advanced message queuing, reliable delivery, and high-performance async processing capabilities

3215.6k](/packages/iamfarhad-laravel-rabbitmq)[bvdputte/kirby-queue

A simple queue utility plugin for Kirby 3. It enables workers in Kirby that can do tasks (in the background) at scheduled intervals (cron) by working through queues of jobs.

314.6k](/packages/bvdputte-kirby-queue)

PHPackages © 2026

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