Skip to content

Commit 2b199bc

Browse files
authored
add install
1 parent e71681d commit 2b199bc

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,26 @@
33

44
A websocket service class, based on the php extension of swoole
55

6+
## Installation via Composer
7+
8+
> The recommended method is through [Composer](https://getcomposer.org/doc/00-intro.md).
9+
10+
* Install [composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx)
11+
12+
* Add **swoole-websocket-server** as a dependency in your project's composer.json file (change version to suit your version):
13+
14+
```
15+
{
16+
"require": {
17+
"furthestworld/swoole-websocket-server": "^1.0"
18+
}
19+
}
20+
```
21+
22+
* composer update in your project
23+
24+
```
25+
composer clear-cache && composer update
26+
```
27+
28+

0 commit comments

Comments
 (0)