PHPackages                             janakawicks/yii2-resque-enqueue - 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. janakawicks/yii2-resque-enqueue

ActiveYii2-extension[Queues &amp; Workers](/categories/queues)

janakawicks/yii2-resque-enqueue
===============================

Extension capable of enqueuing jobs to Resque backend.

015PHP

Since Dec 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/janakawicks/yii2-resque-enqueue)[ Packagist](https://packagist.org/packages/janakawicks/yii2-resque-enqueue)[ RSS](/packages/janakawicks-yii2-resque-enqueue/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Resque Enqueue
===================

[](#yii2-resque-enqueue)

Extension capable of enqueuing jobs to Resque backend.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist janakawicks/yii2-resque-enqueue "*"

```

or add

```
"janakawicks/yii2-resque-enqueue": "*"

```

to the require section of your `composer.json` file.

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

[](#configuration)

To use this extension, you have to configure the yii2-redis Connection class and ResqueEnqueue class in your application configuration:

```
return [
    //....
    'components' => [
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => 'localhost',
            'port' => 6379,
            'database' => 0,
        ],
        'resqueEnqueue' => [
          'class' => 'janakawicks\resque\ResqueEnqueue',
        ],
    ]
];
```

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
$resqueEnqueue = Yii::$app->resqueEnqueue;
$resqueEnqueue->queue = 'mysql_backup';
$resqueEnqueue->enqueue('MySQLBackup', 'mydb01'); // with single argument.
$resqueEnqueue->enqueue('MySQLBackup', 'mydb01', true, '2015-12-31'); //with multiple arguments.
$resqueEnqueue->enqueue('MySQLBackup', ['mydb01', 'mydb02']); // with single argument with array
```

Notes
-----

[](#notes)

You can override the namespace at the configuration or in the code

```
return [
    //....
    'components' => [
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => 'localhost',
            'port' => 6379,
            'database' => 0,
        ],
        'resqueEnqueue' => [
          'class' => 'janakawicks\resque\ResqueEnqueue',
          'namespace' => 'my_engine:',
        ],
    ]
];
```

```
$resqueEnqueue = Yii::$app->resqueEnqueue;
$resqueEnqueue->namespace = 'my_engine:';
```

Key is generated as follows

```
  $namespace:queue:$queue_name

  Example:
    resque:queue:mysql_backup

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/221475?v=4)[Janaka Wickramasinghe](/maintainers/janakawicks)[@janakawicks](https://github.com/janakawicks)

---

Top Contributors

[![janakawicks](https://avatars.githubusercontent.com/u/221475?v=4)](https://github.com/janakawicks "janakawicks (1 commits)")

### Embed Badge

![Health badge](/badges/janakawicks-yii2-resque-enqueue/health.svg)

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

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.5M30](/packages/league-geotools)[illuminate/bus

The Illuminate Bus package.

6045.5M508](/packages/illuminate-bus)[uecode/qpush-bundle

Asynchronous processing for Symfony using Push Queues

1672.5M2](/packages/uecode-qpush-bundle)[jayazhao/think-queue-rabbitmq

为 ThinkPHP5.1 队列增加 RabbitMQ 驱动

141.5k](/packages/jayazhao-think-queue-rabbitmq)[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)
