Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)