Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit dd68c49

Browse files
committed
Merge branch 'release/0.8.5'
2 parents e1031b5 + 6d8d0e7 commit dd68c49

26 files changed

Lines changed: 838 additions & 30 deletions

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ vendor
44
cover
55
*.phar
66
/composer.phar
7-
/phpDocumentor.phar
7+
/phpdoc.phar
88
/composer.lock
99
/docs/api
1010
build
1111
.idea
12+
coverage

CONTRIBUTORS

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
1-
Adrià Cidre <adria.cidre@gmail.com> - http://oridoki.com - @adriacidre
2-
José Gil <josgilmo@gmail.com> - @josgilmo
3-
Gorka López de Torre <glopezdetorre@gmail.com> - http://gorka.io - @glopezdetorre
4-
Issel Guberna - http://isselguberna.com/ - @octante
5-
Donal Byrne - <byrnedo@tcd.ie> - http://www.byrnedo.com/
6-
Dominique Feyer - <dfeyer@ttree.ch> - http://www.ttree.ch/
7-
Oliver Mack -
8-
Superbug - http://www.superbug.co/
9-
netroby - http://www.netroby.com/
10-
1+
Adria Cidre <adria.cidre@gmail.com>
2+
Anthony Sterling <mail@anthonysterling.com>
3+
DependenCI Bot <dependenci@miguelpiedrafita.com>
4+
Dominique Feyer <dfeyer@ttree.ch>
5+
Dominique Feyer <noreply@github.com>
6+
Donal Byrne <byrnedo@tcd.ie>
7+
Donal Byrne <noreply@github.com>
8+
Gorka López de Torre <glopezdetorre@gmail.com>
9+
Issel Guberna <issel.guberna@gmail.com>
10+
Ivan Padavic <ipadavic@gmail.com>
11+
Jose Gil <jose.gilmolina@gmail.com>
12+
Oliver Mack <dev@oliver-mack.com>
13+
Oliver Mack <mail@oliver-mack.com>
14+
Raül Pérez <adria.cidre@gmail.com>
15+
Raül Pérez <byrnedo@tcd.ie>
16+
Raül Pérez <noreply@github.com>
17+
Raül Pérez <raul.perez@r3labs.io>
18+
Raül Pérez <repejota@gmail.com>
19+
Raül Pérez <repejota@users.noreply.github.com>
20+
Serghei Iakovlev <serghei@phalconphp.com>
21+
Superbug <evren@superbug.co>
22+
jgil <jgil@trovit.com>
23+
netroby <netroby@users.noreply.github.com>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 repejota@gmail.com
3+
Copyright (c) 2015-2017 repejota@gmail.com
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PHPCS_PHAR = https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
22
COMPOSER_PHAR = https://getcomposer.org/composer.phar
33
PHPDOCUMENTOR_PHAR_URL = https://github.com/phpDocumentor/phpDocumentor2/releases/download/v2.9.0/phpDocumentor.phar
4-
CLEAN_FILES = composer.phar composer.lock phpDocumentor.phar phpcs.phar phpcbf.phar
4+
CLEAN_FILES = composer.phar composer.lock phpdoc.phar phpcs.phar phpcbf.phar .idea
55
CLEAN_FOLDERS = bin build cover vendor docs/api
66
CLEAN_PATHS = $(CLEAN_FILES) $(CLEAN_FOLDERS)
77
SOURCE_CODE_PATHS = src test examples

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Requirements
2222
------------
2323

2424
* php 5.6+
25-
* [nats](https://github.com/derekcollison/nats) or [gnatsd](https://github.com/apcera/gnatsd)
25+
* [gnatsd](https://github.com/apcera/gnatsd)
2626

2727

2828
Usage

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.8.4
1+
0.8.5

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"require-dev": {
1111
"phpunit/phpunit": "5.*",
1212
"phpspec/phpspec": "^3.0",
13-
"satooshi/php-coveralls": "dev-master"
13+
"satooshi/php-coveralls": "dev-master",
14+
"leanphp/phpspec-code-coverage": "^3.2@dev"
1415
},
1516
"authors": [
1617
{

examples/connect.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
<?php
22
require_once __DIR__.'/../vendor/autoload.php';
33

4-
$connectionOptions = new \Nats\ConnectionOptions();
5-
$connectionOptions->setHost('localhost')->setPort(4222);
4+
$connectionOptions = new \Nats\ConnectionOptions(
5+
[
6+
'host' => '127.0.0.1',
7+
'port' => 4222,
8+
]
9+
);
10+
611
$c = new Nats\Connection($connectionOptions);
712
$c->connect();
813
$c->close();

examples/connectauthtoken.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
require_once __DIR__.'/../vendor/autoload.php';
3+
4+
$connectionOptions = new \Nats\ConnectionOptions();
5+
$connectionOptions->setHost('localhost')->setPort(4222)->setToken('supersecrettoken');
6+
$c = new Nats\Connection($connectionOptions);
7+
$c->connect();
8+
$c->close();

examples/simpleclient/main.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
require_once __DIR__.'/../../vendor/autoload.php';
3+
4+
use Nats\Connection as NatsClient;
5+
6+
$nc = new NatsClient();
7+
$nc->connect();
8+
9+
printf('Connected to NATS at %s'.PHP_EOL, $nc->connectedServerId());
10+
11+
$nc->wait();

0 commit comments

Comments
 (0)