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.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/elandlord/nats-php

v1.0.0 2025-11-16 17:36 UTC

This package is auto-updated.

Last update: 2025-11-16 19:59:14 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