PHPackages                             camry/nsqclient - 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. camry/nsqclient

AbandonedArchivedLibrary

camry/nsqclient
===============

0.1.2(6y ago)0562MITPHPPHP &gt;=5.6

Since Jul 6Pushed 6y agoCompare

[ Source](https://github.com/camry/nsqclient-php)[ Packagist](https://packagist.org/packages/camry/nsqclient)[ RSS](/packages/camry-nsqclient/feed)WikiDiscussions master Synced today

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

NSQClient
=========

[](#nsqclient)

Yet another PHP client for [NSQ](http://nsq.io)

### Installation (via composer)

[](#installation-via-composer)

```
composer require moolex/nsqclient dev-master

```

### Usage

[](#usage)

#### Publish

[](#publish)

```
$topic = 'my_topic';
$endpoint = new \NSQClient\Access\Endpoint('http://127.0.0.1:4161');
$message = new \NSQClient\Message\Message('hello world');
$result = \NSQClient\Queue::publish($endpoint, $topic, $message);
```

#### Publish (deferred)

[](#publish-deferred)

```
$topic = 'my_topic';
$endpoint = new \NSQClient\Access\Endpoint('http://127.0.0.1:4161');
$message = (new \NSQClient\Message\Message('hello world'))->deferred(5);
$result = \NSQClient\Queue::publish($endpoint, $topic, $message);
```

#### Publish (batch)

[](#publish-batch)

```
$topic = 'my_topic';
$endpoint = new \NSQClient\Access\Endpoint('http://127.0.0.1:4161');
$message = \NSQClient\Message\Bag::generate(['msg data 1', 'msg data 2']);
$result = \NSQClient\Queue::publish($endpoint, $topic, $message);
```

#### Subscribe

[](#subscribe)

```
$topic = 'my_topic';
$channel = 'my_channel';
$endpoint = new \NSQClient\Access\Endpoint('http://127.0.0.1:4161');
\NSQClient\Queue::subscribe($endpoint, $topic, $channel, function (\NSQClient\Contract\Message $message) {
    echo 'GOT ', $message->id(), "\n";
    // make done
    $message->done();
    // make retry immediately
    // $message->retry();
    // make retry delayed in 10 seconds
    // $message->delay(10);
});
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81% 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

Every ~387 days

Total

3

Last Release

2455d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d47e5de7c7d77aeea876182e5073c7510d2b788faede38a5b551b39b1a7177a?d=identicon)[camry](/maintainers/camry)

---

Top Contributors

[![moolex](https://avatars.githubusercontent.com/u/1132321?v=4)](https://github.com/moolex "moolex (17 commits)")[![camry](https://avatars.githubusercontent.com/u/790303?v=4)](https://github.com/camry "camry (2 commits)")[![xiezhenye](https://avatars.githubusercontent.com/u/2225688?v=4)](https://github.com/xiezhenye "xiezhenye (1 commits)")[![xxvholic](https://avatars.githubusercontent.com/u/5485134?v=4)](https://github.com/xxvholic "xxvholic (1 commits)")

---

Tags

nsq

### Embed Badge

![Health badge](/badges/camry-nsqclient/health.svg)

```
[![Health](https://phpackages.com/badges/camry-nsqclient/health.svg)](https://phpackages.com/packages/camry-nsqclient)
```

###  Alternatives

[api-platform/metadata

API Resource-oriented metadata attributes and factories

223.5M96](/packages/api-platform-metadata)[moolex/nsqclient

2230.1k1](/packages/moolex-nsqclient)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[okstuff/phpnsq

PHP Client for nsq

4011.3k](/packages/okstuff-phpnsq)

PHPackages © 2026

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