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(1mo ago)2854↓22.7%1MITPHPPHP &gt;=8.2CI passing

Since Nov 16Pushed 1mo 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 1mo 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

47

—

FairBetter than 94% of packages

Maintenance90

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community10

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

53d 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 (17 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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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