Travis
Coverage
A PHP client for the NATS messaging system.
Note: phpnats is under heavy development.
$client = new \Nats\Connection();
$client->connect();
# Simple Publisher
$client->publish("foo", "foo bar");
# Simple Subscriber
$callback = function($payload)
{
printf("Data: %s\r\n", $payload);
};
$client->subscribe("foo", $callback);
# Wait for 1 message
$client->wait(1);
Tests are in the tests
folder.
To run them, you need PHPUnit
and execute make test
.
We are using PHP Code Sniffer to ensure our code follow an high quality standard.
To perform an analysis of the code execute make cs
.
Raül Pérez
Adrià Cidre
José Gil
Gorka López de Torre
MIT, see LICENSE