PHPackages                             elandlord/nats-php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. elandlord/nats-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

elandlord/nats-php
==================

A lightweight, framework-agnostic PHP abstraction layer for NATS and JetStream. Includes publishers, consumers, message envelopes, and handler interfaces built on top of basis-company/nats.

v1.2.0(3mo ago)21.2k↓61.7%11MITPHPPHP &gt;=8.2CI passing

Since Nov 16Pushed 3mo agoCompare

[ Source](https://github.com/Elandlord/nats-php)[ Packagist](https://packagist.org/packages/elandlord/nats-php)[ RSS](/packages/elandlord-nats-php/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (5)Dependencies (12)Versions (9)Used By (1)

[![Tests](https://github.com/Elandlord/nats-php/actions/workflows/tests.yml/badge.svg)](https://github.com/Elandlord/nats-php/actions/workflows/tests.yml)

NATS PHP
========

[](#nats-php)

A framework-agnostic PHP abstraction layer for **NATS** using **JetStream**, built on top of [`basis-company/nats`](https://github.com/basis-company/nats-php) client.

This library leverages a structured architecture for using NATS. It can be used in any PHP framework like:

- Symfony
- Magento 2
- Laravel
- Any vanilla PHP project

✨ Features
----------

[](#-features)

✔ Event envelopes
✔ Publisher &amp; consumer abstractions
✔ JetStream integration
✔ Handler interfaces
✔ Connection configuration helper

🚀 Installation
--------------

[](#-installation)

`composer require elandlord/nats-php`

Examples
--------

[](#examples)

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance81

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

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

Every ~21 days

Recently: every ~31 days

Total

7

Last Release

99d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5966835?v=4)[Eric Landheer](/maintainers/Elandlord)[@Elandlord](https://github.com/Elandlord)

---

Top Contributors

[![Elandlord](https://avatars.githubusercontent.com/u/5966835?v=4)](https://github.com/Elandlord "Elandlord (16 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/elandlord-nats-php/health.svg)

```
[![Health](https://phpackages.com/badges/elandlord-nats-php/health.svg)](https://phpackages.com/packages/elandlord-nats-php)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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