{"repo":"yiisoft/queue","free":true,"listed":false,"github":"https://github.com/yiisoft/queue","clone":"git clone https://github.com/yiisoft/queue.git","description":"Framework agnostic message queue","language":"PHP","stars":61,"topics":["queue","rabbitmq","amqp","beanstalk","redis","sqs","yii3","hacktoberfest","optionalforframeworkannounce","kafka"],"license":"BSD-3-Clause","category":"databases-storage","readme_excerpt":"Yii Queue A framework-agnostic PHP queue library for running tasks asynchronously, best used with Yii3 applications. Requirements - PHP 8.1 - 8.5. - PCNTL extension for signal handling (optional, recommended for production use) . Installation The package could be installed with Composer: Quick Start 1. Install an adapter For production use, you should install an adapter package that matches your message broker (AMQP, Kafka, NATS, and others). See the adapter list and follow the adapter-specific documentation for installation and configuration details. If you don't have an external broker — whether for development, testing, or because you want to design around QueueProducerInterface from day one and add a real broker later — you can run the queue in synchronous mode using SyncQueueProducer instead of AsyncQueueProducer . In this mode messages are processed immediately in the same process, so it won't provide true async execution, but the code stays the same when you switch to a real adapter. 2. Prepare a message and handler Define a message class for the work to be done — a simple value object with typed properties: Then create a handler that processes it: 3. Configure the queue Configuration with yiisoft/config If you use yiisoft/app or yiisoft/app-api Add queue configuration to your application $params config. In yiisoft/app/yiisoft/app-api templates it's typically the config/params.php file. If your project structure differs, put it into any params config file that is loade","default_branch":null,"files":null,"tree":[],"storefront":"/r/yiisoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yiisoft/queue/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}