Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 5c6d8cd

Browse files
committed
Documentation: New README.md file.
1 parent eeab466 commit 5c6d8cd

File tree

1 file changed

+89
-22
lines changed

1 file changed

+89
-22
lines changed

README.md

Lines changed: 89 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,65 @@
1-
![Hoa](http://static.hoa-project.net/Image/Hoa_small.png)
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 ![state](http://central.hoa-project.net/State/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+
[![Help on IRC](https://img.shields.io/badge/help-%23hoaproject-ff0066.svg)](https://webchat.freenode.net/?channels=#hoaproject)
22+
[![Help on Gitter](https://img.shields.io/badge/help-gitter-ff0066.svg)](https://gitter.im/hoaproject/central)
23+
[![Documentation](https://img.shields.io/badge/documentation-hack_book-ff0066.svg)](https://central.hoa-project.net/Documentation/Library/Websocket)
24+
[![Board](https://img.shields.io/badge/organisation-board-ff0066.svg)](https://waffle.io/hoaproject/websocket)
725

826
This library allows to manipulate the WebSocket protocol and proposes a server
927
and a client. It supports two specifications
1028
[RFC6455](https://tools.ietf.org/html/rfc6455) and
1129
[Hybi](https://tools.ietf.org/wg/hybi/draft-ietf-hybi-thewebsocketprotocol/) (at
1230
the same time).
1331

32+
[Learn more](https://central.hoa-project.net/Documentation/Library/Websocket).
33+
1434
## Installation
1535

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).
1946

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
2659
```
2760

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).
3063

3164
## Quick usage
3265

@@ -129,16 +162,50 @@ Here we are. All sent messages are echoed.
129162

130163
The following awecodes show this library in action:
131164

132-
* [`Hoa\Websocket`](http://hoa-project.net/Awecode/Websocket.html):
165+
* [`Hoa\Websocket`](https://hoa-project.net/Awecode/Websocket.html):
133166
*why and how to use `Hoa\Websocket\Server` and `Hoa\Websocket\Client`? A
134167
simple example will illustrate the WebSocket protocol*.
135168

136169
## Documentation
137170

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.
140198

141199
## License
142200

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

Comments
 (0)