PHPackages                             kop/php-kue-client - 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. kop/php-kue-client

ActiveLibrary[Queues &amp; Workers](/categories/queues)

kop/php-kue-client
==================

PHP client for Kue priority job queue API

1.0.0(10y ago)39.5kMITPHPPHP &gt;=5.5.0

Since Mar 6Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kop/php-kue-client)[ Packagist](https://packagist.org/packages/kop/php-kue-client)[ Docs](https://kop.github.io/php-kue-client/)[ RSS](/packages/kop-php-kue-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

PHP client for Kue JSON API
===========================

[](#php-client-for-kue-json-api)

[Kue](https://github.com/Automattic/kue) is a priority job queue backed by redis, built for node.js.

This package is a PHP client for Kue JSON API. It's tested with Kue version `0.10.3` and will be kept in sync with Kue changes on best effort basis.

[![Latest Stable Version](https://camo.githubusercontent.com/2d7186bd0678797987b229a6fd45cb7dc17c5513837f83717a9c949d2510fa35/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f702f7068702d6b75652d636c69656e742e737667)](https://packagist.org/packages/kop/php-kue-client)[![Code Climate](https://camo.githubusercontent.com/891e9a2279f60954756880891ba6e171a355f4937f8c5130dfb667de88fc1b00/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f6b6f702f7068702d6b75652d636c69656e742e737667)](https://codeclimate.com/github/kop/php-kue-client/trends)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f6d22181f63d6463943198d57442601664f2eb04f92f174c1110d2e1df419ae4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6b6f702f7068702d6b75652d636c69656e742e737667)](https://scrutinizer-ci.com/g/kop/php-kue-client/)[![Gemnasium](https://camo.githubusercontent.com/0590a1b582147436feef3894d8b0b328875870092553fa310d50799ce480919c/68747470733a2f2f696d672e736869656c64732e696f2f67656d6e617369756d2f6b6f702f7068702d6b75652d636c69656e742e737667)](https://gemnasium.com/kop/php-kue-client)[![License](https://camo.githubusercontent.com/46a02546ef8f075098aeb66fb03c3c303eb951fed0c0109858e6fae50fa41f0e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b6f702f7068702d6b75652d636c69656e742e737667)](https://packagist.org/packages/kop/php-kue-client)

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

[](#requirements)

- PHP 5.5

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

[](#installation)

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

Either run

```
composer require kop/php-kue-client "dev-master"

```

or add

```
"kop/php-kue-client": "dev-master"

```

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

Usage
-----

[](#usage)

In order to connect to the Kue JSON API, all you need to do is to create an instance of `\kop\kue\Client`:

```
$client = new \kop\kue\Client('https://kue-dashboard.domain.com');

// Get Kue stats
$stats = $client->stats();

// Create a new Job
$response = $client->jobs()->create(
    'email',
    [
        'title' => 'welcome email for tj',
        'to' => 'tj@learnboost.com',
        'template' => 'welcome-email',
    ],
    [
        'priority' => 'high',
    ],
);
$jobID = $response['id'];

// Get Job by it's ID
$job = $client->jobs()->get($jobID);

// Delete Job by it's ID
$client->jobs()->delete($jobID);
```

Supported API endpoints
-----------------------

[](#supported-api-endpoints)

This API client supports all endpoints exposed by Kue JSON API. The followings are methods that are used to map to this API endpoints:

### General

[](#general)

This methods

- `stats()` - Responds with state counts, and worker activity time in milliseconds;
- `jobs()` - Returns commands that are related to Kue jobs.

### Jobs

[](#jobs)

This methods can be accessed via `jobs()` method of the `\kop\kue\Client`.

- `search($query)` - Search jobs;
- `create($type, $data, $options = [])` - Creates a new job;
- `get($id)` - Returns a job by it's ID;
- `logs($id)` - Returns job logs by job ID;
- `delete($id)` - Deletes a job by it's ID.

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

[](#configuration)

This API client implements some additional features that are related to logging and errors handling. Please see the class source code for more details - it's well documented and should not cause any questions.

Report
------

[](#report)

- Report any issues on the [GitHub Issue Tracker](https://github.com/kop/php-kue-client/issues).

License
-------

[](#license)

This project is released under the MIT License. See the bundled [LICENSE.md](https://github.com/kop/php-kue-client/blob/master/LICENSE.md) for details.

Resources
---------

[](#resources)

- [Project Page](https://kop.github.io/php-kue-client)
- [Packagist Package](https://packagist.org/packages/kop/php-kue-client)
- [Source Code](https://github.com/kop/php-kue-client)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3721d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b906a707040b98f857e7d0a4578bbb99f0b27aed4b46380f9cd0a8cd202e00b1?d=identicon)[kop](/maintainers/kop)

---

Top Contributors

[![kop](https://avatars.githubusercontent.com/u/645148?v=4)](https://github.com/kop "kop (8 commits)")

---

Tags

apiclientqueuejobkue

### Embed Badge

![Health badge](/badges/kop-php-kue-client/health.svg)

```
[![Health](https://phpackages.com/badges/kop-php-kue-client/health.svg)](https://phpackages.com/packages/kop-php-kue-client)
```

###  Alternatives

[phlib/beanstalk

Library for handling beanstalk connections.

1014.9k2](/packages/phlib-beanstalk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
