Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
1abb9f8bf5 | |||
2c3c78769c | |||
0b990b6726 | |||
440894a7f9 |
17
Readme.md
17
Readme.md
@ -8,20 +8,10 @@ I wrote this project because I had a hard time finding any alternative to handli
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Use [composer] with the git repository `https://github.com/Aldarien/events` (don't have [Packagist] setup correctly).
|
Use [composer].
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
composer require aldarien/events
|
||||||
"require": {
|
|
||||||
"aldarien/events": "~1"
|
|
||||||
},
|
|
||||||
"repositories": [
|
|
||||||
{
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/Aldarien/events"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Use
|
## Use
|
||||||
@ -103,9 +93,8 @@ Set the event listeners for `open`, `message`, `error` and `close` and start sen
|
|||||||
Take note of the last lines where the message received by the **app** needs an action equivalent to the event names added before and the data associated if any (can be missing).
|
Take note of the last lines where the message received by the **app** needs an action equivalent to the event names added before and the data associated if any (can be missing).
|
||||||
|
|
||||||
[PHP]: http://php.net
|
[PHP]: http://php.net
|
||||||
[WebSocket]: https://en.wikipedia.org/wiki/WebSocket
|
[WebSockets]: https://en.wikipedia.org/wiki/WebSocket
|
||||||
[Ratchet]: http://socketo.me/
|
[Ratchet]: http://socketo.me/
|
||||||
[Slim]: https://slimframework.com
|
[Slim]: https://slimframework.com
|
||||||
[PHP-DI]: https://php-di.org/
|
[PHP-DI]: https://php-di.org/
|
||||||
[composer]: https://getcomposer.org
|
[composer]: https://getcomposer.org
|
||||||
[Packagist]: https://packagist.org
|
|
||||||
|
Reference in New Issue
Block a user