PHPackages                             ancoka/yii2-queues - 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. ancoka/yii2-queues

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

ancoka/yii2-queues
==================

A queuning service which is implemented by redis for Yii2 framework.

1.0.0(9y ago)223MITPHPPHP &gt;=5.4

Since Feb 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ancoka/yii2-queues)[ Packagist](https://packagist.org/packages/ancoka/yii2-queues)[ RSS](/packages/ancoka-yii2-queues/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

About
=====

[](#about)

Yii2-queues is a redis implementation based Yii framework queue extension service. The code is slightly modified on the basis of Chris Boulton's [php-resque](https://github.com/chrisboulton/php-resque "php-resque a PHP Resque Worker"), using the PSR4 standard, adding namespace support, and inheriting the Yii2 component.

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

[](#requirements)

- PHP 5.3+
- Redis 2.2+
- Composer

Install
-------

[](#install)

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

Directly use the composer command to install:

```
php composer.phar require --prefer-dist soyaf518/yii2-queues "*"

```

Or add the following to your project's "composer.json" file:

```
"soyaf518/yii2-queues": "*"

```

And running:

```
composer install

```

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

[](#configuration)

To use this extension, you have to configure the ResqueComponent class in your application configuration:

```
return [
	//...
	'components' => [
		'resque' => [
			'class' => 'queues\ResqueComponent',
			'server' => '127.0.0.1',
			'port' => 6379,
			'database' => 0,
			'user' => '',
			'password' => '',
			'options' => [
				'timeout' => '',
				'persistent' => '',
			],
		],
	]
];

```

Usage
-----

[](#usage)

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

1. Queueing Jobs

    Jobs are queued as follows:

    ```
