flownative/nats

Last activity 02 Apr 2019 7 190
composer require flownative/nats

A NATS client for PHP.

dev-master

Version
dev-master
Type
neos-package
Release Date
Apr 02, 2019 16:22
Source
git
Distribution
zip
Requires
  • php: ^7.1
  • ocramius/package-versions: ^1.0
  • guzzlehttp/psr7: ^1.3
  • protobuf-php/protobuf: ^0.1
MIT 47b5bca1262165204f9bfb04aee9fb004943bbc9

Readme excerpt

NATS PHP Client

A PHP implementation of a client for NATS.

? Please note that this package is currently under development and not ready for general use yet.

Usage

Install the package using composer:

composer require flownative/nats

In PHP, open a new connection with

use Flownative\Nats\Connection; // Connect to a server $nats = new Connection( 'nats://localhost:4222', [ 'username' => 'nats', 'password' => 'password', 'debug' => true ] ); // Simple publisher $nats->publish('foo', 'Hello World'); // Simple asynchronous subscriber $nats->subscribe('foo', function($message) { printf("\nReceived a …
Read more
The content of the readme is provided by an external source, which we have no control over. Check out the actual readme at its source.
The same vendor provides 44 package(s).