PHPackages                             bigcommerce/php-resque-pause - 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. bigcommerce/php-resque-pause

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

bigcommerce/php-resque-pause
============================

php-resque-pause is a PHP port of resque-pause, which adds support for pausing / unpausing Resque jobs.

0.3.1(9y ago)511.1k↓16.7%8PHP

Since Sep 22Pushed 9y ago77 watchersCompare

[ Source](https://github.com/bigcommerce/php-resque-pause)[ Packagist](https://packagist.org/packages/bigcommerce/php-resque-pause)[ RSS](/packages/bigcommerce-php-resque-pause/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (4)Versions (9)Used By (0)

PHP Resque Pause [![Build Status](https://camo.githubusercontent.com/a3d8c295652a783e4cda3f7b935acca02fce1e4486363942246fe2d684491ccc/68747470733a2f2f7472617669732d63692e6f72672f626967636f6d6d657263652f7068702d7265737175652d70617573652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bigcommerce/php-resque-pause)
====================================================================================================================================================================================================================================================================================================================================

[](#php-resque-pause-)

A [PHP-Resque](http://github.com/chrisboulton/php-resque) plugin.

resque-pause adds functionality to pause resque jobs

Using a pause allows you to stop the worker without stop the enqueue

For further information re: php-resque, visit this official repo:

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

[](#requirements)

- PHP 5.3+
- Redis 2.2+
- Composer

Getting Started
---------------

[](#getting-started)

resque-pause is installed via composer. To install:

```
$ # Add php-resque-pause to your project's composer.json
$ composer require "bigcommerce/php-resque-pause"
$ # Install composer dependencies
$ composer install
```

Usage
-----

[](#usage)

To use Resque Pause in your application you'll need to create a globally used instance, we use Pimple but you can use globals, a static variable, or whatever else you like. Upon instantiation `Pause` will add a Resque listener to make sure that any jobs pushed to a paused queue will be paused as well. On destruction `Pause` will remove said listener.

```
// Let's put it in a global since that's easy/familiar
$GLOBALS['ResquePause'] = new \Resque\Plugins\Pause(); // Your enqueues are now being listened to
```

### Pause it!

[](#pause-it)

```
$GLOBALS['ResquePause']->pause('My_Queue');
```

### Resume it!

[](#resume-it)

```
$GLOBALS['ResquePause']->resume('My_Queue');
```

### Is it Paused?

[](#is-it-paused)

```
$GLOBALS['ResquePause']->isPaused('My_Queue');
```

Contributing
------------

[](#contributing)

This repo is fairly thoroughly tested so please add tests for any feature you add. We use PSR-4 conventions and have a linter in place. To run the linter simply run `composer lint` and to run the tests locally run `composer test`. To have your code reviewed please tag @bigcommerce-labs/tools.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56% 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 ~113 days

Recently: every ~135 days

Total

6

Last Release

3565d ago

### Community

Maintainers

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

---

Top Contributors

[![wedy](https://avatars.githubusercontent.com/u/232968?v=4)](https://github.com/wedy "wedy (14 commits)")[![gabelimon](https://avatars.githubusercontent.com/u/1356519?v=4)](https://github.com/gabelimon "gabelimon (7 commits)")[![n1te1337](https://avatars.githubusercontent.com/u/1946858?v=4)](https://github.com/n1te1337 "n1te1337 (3 commits)")[![cwalsh](https://avatars.githubusercontent.com/u/34578?v=4)](https://github.com/cwalsh "cwalsh (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bigcommerce-php-resque-pause/health.svg)

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

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.6M31](/packages/league-geotools)[chrisboulton/php-resque-scheduler

php-resque-scheduler is a PHP port of resque-scheduler, which adds support for scheduling items in the future to Resque.

2712.5M14](/packages/chrisboulton-php-resque-scheduler)[illuminate/bus

The Illuminate Bus package.

6046.3M542](/packages/illuminate-bus)[bcc/resque-bundle

BCCResqueBundle

121736.8k2](/packages/bcc-resque-bundle)[belvg/module-sqs

N/A

1544.6k](/packages/belvg-module-sqs)[mayconbordin/l5-stomp-queue

Stomp Queue Driver for Laravel 5

121.1k](/packages/mayconbordin-l5-stomp-queue)

PHPackages © 2026

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