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
Requires
- php: >=8.2
- basis-company/nats: ^1.0
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