mwangaben / nats-php-client
Official PHP client for NATS messaging system
Installs: 1
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/mwangaben/nats-php-client
Requires
- php: ^8.0|^8.1|^8.2|^8.3
- ext-json: *
- ext-openssl: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.92
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: ^3.7
Suggests
- ext-sockets: For better network performance
This package is auto-updated.
Last update: 2026-01-10 17:22:35 UTC
README
Official PHP client for the NATS messaging system. NATS is a simple, secure and performant communications system for digital systems, services and devices.
Installation
composer require mwangaben/nats-php-nats-client
Features
- Full NATS protocol support
- Publish/Subscribe messaging
- Request/Reply pattern
- Queue groups
- TLS/SSL support
- Automatic reconnection
- Connection pooling
- Multiple encoding formats (JSON, raw, etc.)
- Comprehensive error handling
- PSR standards compliant
Installation
composer require mwangaben/nats-php/nats-client
CHANGELOG.md
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [2.0.0] - 2024-01-10 ### Added - Official NATS PHP client package - Full NATS protocol support - TLS/SSL encryption support - Automatic reconnection with configurable attempts - Queue groups support - Request/Reply pattern (sync & async) - Multiple encoders (JSON, Raw) - Comprehensive error handling - Connection statistics - Debug logging - PSR standards compliance - Unit tests - Examples and documentation ### Changed - Complete rewrite with modern PHP practices - Improved architecture with separation of concerns - Better error messages and exceptions - Enhanced performance and reliability ## [1.0.0] - Initial Release - Basic NATS client functionality - Publish/Subscribe support - Basic authentication