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.

Maintainers

Package info

github.com/Elandlord/nats-php

pkg:composer/elandlord/nats-php

Statistics

Installs: 892

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 0

v1.2.0 2026-03-27 07:40 UTC

This package is auto-updated.

Last update: 2026-03-27 07:40:39 UTC


README

Tests

NATS PHP

A framework-agnostic PHP abstraction layer for NATS using JetStream, built on top of basis-company/nats 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

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

🚀 Installation

composer require elandlord/nats-php

Examples