|
1 |
| - |
2 |
| - |
3 |
| -Hoa is a **modular**, **extensible** and **structured** set of PHP libraries. |
4 |
| -Moreover, Hoa aims at being a bridge between industrial and research worlds. |
5 |
| - |
6 |
| -# Hoa\Websocket  |
| 1 | +<p align="center"> |
| 2 | + <img src="https://static.hoa-project.net/Image/Hoa.svg" alt="Hoa" width="250px" /> |
| 3 | +</p> |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +<p align="center"> |
| 8 | + <a href="https://travis-ci.org/hoaproject/websocket"><img src="https://img.shields.io/travis/hoaproject/websocket/master.svg" alt="Build status" /></a> |
| 9 | + <a href="https://coveralls.io/github/hoaproject/websocket?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/websocket/master.svg" alt="Code coverage" /></a> |
| 10 | + <a href="https://packagist.org/packages/hoa/websocket"><img src="https://img.shields.io/packagist/dt/hoa/websocket.svg" alt="Packagist" /></a> |
| 11 | + <a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/websocket.svg" alt="License" /></a> |
| 12 | +</p> |
| 13 | +<p align="center"> |
| 14 | + Hoa is a <strong>modular</strong>, <strong>extensible</strong> and |
| 15 | + <strong>structured</strong> set of PHP libraries.<br /> |
| 16 | + Moreover, Hoa aims at being a bridge between industrial and research worlds. |
| 17 | +</p> |
| 18 | + |
| 19 | +# Hoa\Websocket |
| 20 | + |
| 21 | +[](https://webchat.freenode.net/?channels=#hoaproject) |
| 22 | +[](https://gitter.im/hoaproject/central) |
| 23 | +[](https://central.hoa-project.net/Documentation/Library/Websocket) |
| 24 | +[](https://waffle.io/hoaproject/websocket) |
7 | 25 |
|
8 | 26 | This library allows to manipulate the WebSocket protocol and proposes a server
|
9 | 27 | and a client. It supports two specifications
|
10 | 28 | [RFC6455](https://tools.ietf.org/html/rfc6455) and
|
11 | 29 | [Hybi](https://tools.ietf.org/wg/hybi/draft-ietf-hybi-thewebsocketprotocol/) (at
|
12 | 30 | the same time).
|
13 | 31 |
|
| 32 | +[Learn more](https://central.hoa-project.net/Documentation/Library/Websocket). |
| 33 | + |
14 | 34 | ## Installation
|
15 | 35 |
|
16 |
| -With [Composer](http://getcomposer.org/), to include this library into your |
17 |
| -dependencies, you need to require |
18 |
| -[`hoa/websocket`](https://packagist.org/packages/hoa/websocket): |
| 36 | +With [Composer](https://getcomposer.org/), to include this library into |
| 37 | +your dependencies, you need to |
| 38 | +require [`hoa/websocket`](https://packagist.org/packages/hoa/websocket): |
| 39 | + |
| 40 | +```sh |
| 41 | +$ composer require hoa/websocket '~2.0' |
| 42 | +``` |
| 43 | + |
| 44 | +For more installation procedures, please read [the Source |
| 45 | +page](https://hoa-project.net/Source.html). |
19 | 46 |
|
20 |
| -```json |
21 |
| -{ |
22 |
| - "require": { |
23 |
| - "hoa/websocket": "~3.0" |
24 |
| - } |
25 |
| -} |
| 47 | +## Testing |
| 48 | + |
| 49 | +Before running the test suites, the development dependencies must be installed: |
| 50 | + |
| 51 | +```sh |
| 52 | +$ composer install |
| 53 | +``` |
| 54 | + |
| 55 | +Then, to run all the test suites: |
| 56 | + |
| 57 | +```sh |
| 58 | +$ vendor/bin/hoa test:run |
26 | 59 | ```
|
27 | 60 |
|
28 |
| -Please, read the website to [get more informations about how to |
29 |
| -install](http://hoa-project.net/Source.html). |
| 61 | +For more information, please read the [contributor |
| 62 | +guide](https://hoa-project.net/Literature/Contributor/Guide.html). |
30 | 63 |
|
31 | 64 | ## Quick usage
|
32 | 65 |
|
@@ -129,16 +162,50 @@ Here we are. All sent messages are echoed.
|
129 | 162 |
|
130 | 163 | The following awecodes show this library in action:
|
131 | 164 |
|
132 |
| - * [`Hoa\Websocket`](http://hoa-project.net/Awecode/Websocket.html): |
| 165 | + * [`Hoa\Websocket`](https://hoa-project.net/Awecode/Websocket.html): |
133 | 166 | *why and how to use `Hoa\Websocket\Server` and `Hoa\Websocket\Client`? A
|
134 | 167 | simple example will illustrate the WebSocket protocol*.
|
135 | 168 |
|
136 | 169 | ## Documentation
|
137 | 170 |
|
138 |
| -Different documentations can be found on the website: |
139 |
| -[http://hoa-project.net/](http://hoa-project.net/). |
| 171 | +The |
| 172 | +[hack book of `Hoa\Websocket`](https://central.hoa-project.net/Documentation/Library/Websocket) contains |
| 173 | +detailed information about how to use this library and how it works. |
| 174 | + |
| 175 | +To generate the documentation locally, execute the following commands: |
| 176 | + |
| 177 | +```sh |
| 178 | +$ composer require --dev hoa/devtools |
| 179 | +$ vendor/bin/hoa devtools:documentation --open |
| 180 | +``` |
| 181 | + |
| 182 | +More documentation can be found on the project's website: |
| 183 | +[hoa-project.net](https://hoa-project.net/). |
| 184 | + |
| 185 | +## Getting help |
| 186 | + |
| 187 | +There are mainly two ways to get help: |
| 188 | + |
| 189 | + * On the [`#hoaproject`](https://webchat.freenode.net/?channels=#hoaproject) |
| 190 | + IRC channel, |
| 191 | + * On the forum at [users.hoa-project.net](https://users.hoa-project.net). |
| 192 | + |
| 193 | +## Contribution |
| 194 | + |
| 195 | +Do you want to contribute? Thanks! A detailed [contributor |
| 196 | +guide](https://hoa-project.net/Literature/Contributor/Guide.html) explains |
| 197 | +everything you need to know. |
140 | 198 |
|
141 | 199 | ## License
|
142 | 200 |
|
143 |
| -Hoa is under the New BSD License (BSD-3-Clause). Please, see |
144 |
| -[`LICENSE`](http://hoa-project.net/LICENSE). |
| 201 | +Hoa is under the New BSD License (BSD-3-Clause). Please, see |
| 202 | +[`LICENSE`](https://hoa-project.net/LICENSE) for details. |
| 203 | + |
| 204 | +## Related projects |
| 205 | + |
| 206 | +The following projects are using this library: |
| 207 | + |
| 208 | + * [Marvirc](https://github.com/Hywan/Marvirc), A dead simple, |
| 209 | + extremely modular and blazing fast IRC bot, |
| 210 | + * [WellCommerce](http://wellcommerce.org/), Modern e-commerce engine |
| 211 | + built on top of Symfony 3 full-stack framework. |
0 commit comments