Download the PHP package yiisoft/yii2-queue without Composer
On this page you can find all versions of the php package yiisoft/yii2-queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
yiisoft/yii2-queue
Rate from 1 - 5
Rated 5.00 based on 2 reviews
Rated 5.00 based on 2 reviews
Informations about the package yii2-queue
Yii2 Queue Extension
An extension for running tasks asynchronously via queues.
It supports queues based on **DB**, **Redis**, **RabbitMQ**, **AMQP**, **Beanstalk**, **ActiveMQ** and **Gearman**.
[](https://packagist.org/packages/yiisoft/yii2-queue)
[](https://packagist.org/packages/yiisoft/yii2-queue)
[](https://github.com/yiisoft/yii2-queue/actions?query=workflow%3Abuild)
[](https://codecov.io/gh/yiisoft/yii2-queue)
[](https://github.com/yiisoft/yii2-queue/actions/workflows/static.yml)
Installation
------------
> [!IMPORTANT]
> - The minimum required [PHP](https://www.php.net/) version is PHP `8.3`.
The preferred way to install this extension is through [composer](https://getcomposer.org/download/):
Basic Usage
-----------
Each task which is sent to queue should be defined as a separate class.
For example, if you need to download and save a file the class may look like the following:
Here's how to send a task into the queue:
To push a job into the queue that should run after 5 minutes:
The exact way a task is executed depends on the used driver. Most drivers can be run using
console commands, which the component automatically registers in your application.
This command obtains and executes tasks in a loop until the queue is empty:
This command launches a daemon which infinitely queries the queue:
See the documentation for more details about driver specific console commands and their options.
The component also has the ability to track the status of a job which was pushed into queue.
## Documentation
- [the guide](docs/guide/README.md)
## Support the project
[](https://opencollective.com/yiisoft)
## Follow updates
[](https://www.yiiframework.com/)
[](https://x.com/yiiframework)
[](https://t.me/yii_framework_in_english)
[](https://yiiframework.com/go/slack)
## License
[](LICENSE.md)
All versions of yii2-queue with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.0
yiisoft/yii2 Version ~2.0.14
symfony/process Version ^3.3||^4.0||^5.0||^6.0||^7.0
yiisoft/yii2 Version ~2.0.14
symfony/process Version ^3.3||^4.0||^5.0||^6.0||^7.0
The package yiisoft/yii2-queue contains the following files
Loading the files please wait ...