PHPackages                             joaoluizjoaquim/laravel-nsq - 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. joaoluizjoaquim/laravel-nsq

ActiveLibrary

joaoluizjoaquim/laravel-nsq
===========================

Nsq driver for Laravel Queue

8.0.14(5y ago)12.1k1MITPHPPHP &gt;=7.2

Since May 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/joaoluizjoaquim/laravel-nsq)[ Packagist](https://packagist.org/packages/joaoluizjoaquim/laravel-nsq)[ RSS](/packages/joaoluizjoaquim-laravel-nsq/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (49)Used By (0)

Laravel Nsq Client
------------------

[](#laravel-nsq-client)

NSQ client for laravel

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

[](#requirements)

DependencyRequirement[PHP](https://secure.php.net/manual/en/install.php)`>= 7.2.0`Installation
------------

[](#installation)

```
composer require jiyis/laravel-nsq

```

Usage
-----

[](#usage)

#### Set env

[](#set-env)

```
# for publish
NSQSD_URL=127.0.0.1:4150
# for subscribe
NSQLOOKUP_URL=127.0.0.1:4161

# If it is multiple, please separate them with ","
NSQSD_URL=127.0.0.1:4150,127.0.0.1:4250

```

#### Create Job

[](#create-job)

```
php artisan make:job NsqTestJob

```

you need set two property. `public $topic;` `public $channel;`

```
class NsqTestJob  implements ShouldQueue
{

    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    public $topic = 'test';

    public $channel = 'web';

    public function handle()
    {
        $client = $this->job->getCurrentClient();
        $payload = json_decode($this->job->getMessage(), true);
        ...
    }
}
```

#### Publish

[](#publish)

```
// the data you want to be publish
$str = [
    'message' => 'this is a message',
    'user_id' => 1
];
// not supported dispatch
Queue::connection('nsq')->push(new NsqTestJob, $str);
```

#### Subscribe

[](#subscribe)

```
php artisan queue:work nsq --sleep=3 --tries=3 --timeout=500  --job=App\\Jobs\\NsqTestJob

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~22 days

Recently: every ~4 days

Total

47

Last Release

1889d ago

Major Versions

1.2.2 → 6.0.02021-02-01

6.0.10 → 7.0.02021-02-10

7.0.0 → 8.0.02021-02-10

PHP version history (3 changes)1.0.0PHP &gt;=7.0

1.0.3PHP &gt;=7.1

1.1.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/94fe9c21afb47970cc5911c6d4aaaef88d4572debe37b38504dd90e50d693dcd?d=identicon)[João Joaquim](/maintainers/Jo%C3%A3o%20Joaquim)

---

Top Contributors

[![jiyis](https://avatars.githubusercontent.com/u/8382195?v=4)](https://github.com/jiyis "jiyis (2 commits)")[![joaoluizjoaquim](https://avatars.githubusercontent.com/u/911554?v=4)](https://github.com/joaoluizjoaquim "joaoluizjoaquim (1 commits)")

### Embed Badge

![Health badge](/badges/joaoluizjoaquim-laravel-nsq/health.svg)

```
[![Health](https://phpackages.com/badges/joaoluizjoaquim-laravel-nsq/health.svg)](https://phpackages.com/packages/joaoluizjoaquim-laravel-nsq)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M225](/packages/laravel-horizon)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[palpalani/laravel-sqs-queue-json-reader

Custom SQS queue reader for Laravel

26109.8k](/packages/palpalani-laravel-sqs-queue-json-reader)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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