PHPackages                             kislayphp/queue - 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. [Caching](/categories/caching)
4. /
5. kislayphp/queue

ActivePhp-ext[Caching](/categories/caching)

kislayphp/queue
===============

Native PHP distributed job queue with a standalone queue server, producer client, worker runtime, retries, and DLQ support

0.0.4(3mo ago)08Apache-2.0ShellPHP &gt;=8.2CI failing

Since Feb 21Pushed 3w agoCompare

[ Source](https://github.com/KislayPHP/queue)[ Packagist](https://packagist.org/packages/kislayphp/queue)[ Docs](https://github.com/KislayPHP/queue)[ RSS](/packages/kislayphp-queue/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (7)Used By (0)

Kislay Queue
============

[](#kislay-queue)

[![PHP Version](https://camo.githubusercontent.com/0f16581d1180dbfd4c0e13166ec1267d4ad2f2fab8281ea6d6b284cf5c65d921/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d626c75652e737667)](https://php.net)[![License](https://camo.githubusercontent.com/109222cb0d1f59ed2e77b56722653623fa45f93e2bb201a6eef8561d26a52185/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d417061636865253230322e302d677265656e2e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/e184d158c84daf1ec2e5a1691ef0a6d2c22ca67b713f8712334392ea49fcdc6c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4b69736c61795048502f71756575652f63692e796d6c3f6272616e63683d6d61696e266c6162656c3d4349)](https://github.com/KislayPHP/queue/actions)[![PIE](https://camo.githubusercontent.com/3e10b1411ce18a680518db29ad161d17050be0a55620a00ed69fabac2a425832/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f696e7374616c6c2d7069652d626c756576696f6c6574)](https://github.com/php/pie)

> Native PHP distributed job queue for long-running services. Phase 1 ships a standalone queue server, producer client, worker client, retries, delayed jobs, and DLQ support.

Part of the [KislayPHP ecosystem](https://skelves.com/kislayphp/docs).

What It Is
----------

[](#what-it-is)

`kislayphp/queue` now has two modes:

- `Kislay\Queue\Server` for the standalone queue node
- `Kislay\Queue\Client` for producers and operational reads
- `Kislay\Queue\Worker` for consumers
- `Kislay\Queue\Job` for ack/nack control inside a handler
- `Kislay\Queue\Queue` as the legacy local in-process queue for development fallback

Delivery model in `0.0.4`:

- at-least-once delivery
- one leased job per worker fetch
- retries with backoff
- delayed jobs
- dead-letter queue support
- in-memory server state only

Install
-------

[](#install)

```
pie install kislayphp/queue:0.0.4
```

Enable in `php.ini`:

```
extension=kislayphp_queue.so
```

5-Minute Quickstart
-------------------

[](#5-minute-quickstart)

### 1. Start the queue server

[](#1-start-the-queue-server)

```
