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.1.0
2025-11-26 16:08 UTC
Requires
- php: >=8.2
- basis-company/nats: ^1.0
- cloudevents/sdk-php: ^1.2
Requires (Dev)
- mockery/mockery: ^1.6
- pestphp/pest: ^2.36
- phpunit/phpunit: ^10.0
- symfony/var-dumper: ^6.0
README
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