Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omgzui/swoole-demo
swoole-demo
https://github.com/omgzui/swoole-demo
composer demo php swoole
Last synced: about 2 hours ago
JSON representation
swoole-demo
- Host: GitHub
- URL: https://github.com/omgzui/swoole-demo
- Owner: OMGZui
- License: mit
- Created: 2018-11-01T15:57:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-17T12:35:42.000Z (almost 6 years ago)
- Last Synced: 2024-11-16T14:13:41.151Z (1 day ago)
- Topics: composer, demo, php, swoole
- Language: PHP
- Homepage: http://demo.omgzui.top/
- Size: 1.35 MB
- Stars: 49
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swoole-demo
## 使用
```bash
composer create-project -s dev omgzui/swoole
```or
```bash
git clone https://github.com/OMGZui/swoole-demo.git
composer install
```## 教程
1. [初始swoole](src/Init/swoole.md)
2. [简单聊天室](src/WebSocket/聊天室.md)## 栗子
1. [TCP服务器](src/Init/tcp_server.php)
2. [UDP服务器](src/Init/udp_server.php)
3. [Web服务器](src/Init/web_server.php)
4. [WebSocket服务器](src/Init/ws_server.php)
5. [定时器](src/Init/tick.php)
6. [异步任务](src/Init/async.php)
7. [同步TCP客户端](src/Init/tcp_sync_client.php)
8. [异步TCP客户端](src/Init/tcp_async_client.php)