Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/easy-swoole/easyswoole
swoole,easyswoole,swoole framework
https://github.com/easy-swoole/easyswoole
coroutine easyswoole swoole swoole-framework tcp-server websocket-server
Last synced: 3 days ago
JSON representation
swoole,easyswoole,swoole framework
- Host: GitHub
- URL: https://github.com/easy-swoole/easyswoole
- Owner: easy-swoole
- License: apache-2.0
- Created: 2017-03-15T12:07:54.000Z (over 7 years ago)
- Default Branch: 3.x
- Last Pushed: 2024-03-26T07:09:51.000Z (9 months ago)
- Last Synced: 2024-12-03T03:05:27.234Z (10 days ago)
- Topics: coroutine, easyswoole, swoole, swoole-framework, tcp-server, websocket-server
- Language: PHP
- Homepage: https://www.easyswoole.com/
- Size: 2.79 MB
- Stars: 4,744
- Watchers: 142
- Forks: 510
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swoole - easyswoole - Use swoole easily just like echo "hello world";. (Framework)
- awesome-php-cn - Easyswoole - 使用swoole很容易,就像echo "hello world "一样。; (目录 / 框架 frameworks)
README
English | [中文](./README_CN.md)
![](easyswoole.png)
[![Latest Stable Version](https://poser.pugx.org/easyswoole/easyswoole/v/stable)](https://packagist.org/packages/easyswoole/easyswoole)
[![Total Downloads](https://poser.pugx.org/easyswoole/easyswoole/downloads)](https://packagist.org/packages/easyswoole/easyswoole)
[![Latest Unstable Version](https://poser.pugx.org/easyswoole/easyswoole/v/unstable)](https://packagist.org/packages/easyswoole/easyswoole)
[![License](https://poser.pugx.org/easyswoole/easyswoole/license)](https://packagist.org/packages/easyswoole/easyswoole)
[![Monthly Downloads](https://poser.pugx.org/easyswoole/easyswoole/d/monthly)](https://packagist.org/packages/easyswoole/easyswoole)# EasySwoole - A High Performance Swoole Framework
[EasySwoole](http://www.easyswoole.com/) is a distributed, persistent memory PHP framework based on the Swoole extension. It was created specifically for APIs to get rid of the performance penalties associated with process calls and file loading. EasySwoole highly encapsulates the Swoole Server and still maintains the original features of the Swoole server, supports simultaneous monitoring of HTTP, custom TCP, and UDP protocols, allowing developers to write multi-process, asynchronous, and highly available applications with minimal learning cost and effort.
- Base on Swoole extension
- Built-in HTTP, TCP, WebSocket,Udp Coroutine Server
- Global dependency injection container
- PSR-7 based HTTP message implementation
- HTTP,TCP, WebSocket, Udp middleware support
- Scalable high performance RPC
- Database ORM
- Mysql, Redis, RPC, HTTP Coroutine Clients
- Coroutine and asynchronous task delivery
- Custom user processes
- RESTful supported
- High performance router
- Fast and flexible parameter validator
- Powerful log component
- Universal connection pools
- Remote Console support
- Crontab Rule Timer support## Doc
- [Doc](http://www.easyswoole.com)
- [中文文档](http://www.easyswoole.com)
- [Git For Doc](https://github.com/easy-swoole/doc-3.7)## ab Test
```php
response()->write('Hello World');
}
}
```### 1 Core 1G RAM
> command : ab -c 100 -n 10000 http://192.168.0.11:9501/
```
Server Software: EasySwoole
Server Hostname: 192.168.0.11
Server Port: 9501Document Path: /
Document Length: 21 bytesConcurrency Level: 100
Time taken for tests: 0.652 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 1690000 bytes
HTML transferred: 210000 bytes
Requests per second: 15325.16 [#/sec] (mean)
Time per request: 9.685 [ms] (mean)
Time per request: 0.097 [ms] (mean, across all concurrent requests)
Transfer rate: 2592.05 [Kbytes/sec] received
```### 8 Core 16G RAM
> command : ab -c 100 -n 10000 http://192.168.0.4:9501/
```
Server Software: EasySwoole
Server Hostname: 192.168.0.4
Server Port: 9501Document Path: /
Document Length: 21 bytesConcurrency Level: 100
Time taken for tests: 0.746 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 1690000 bytes
HTML transferred: 210000 bytes
Requests per second: 66935.97 [#/sec] (mean)
Time per request: 1.149 [ms] (mean)
Time per request: 0.015 [ms] (mean, across all concurrent requests)
Transfer rate: 2265.40 [Kbytes/sec] received
```## Quick Start
```
composer require easyswoole/easyswoole=3.7.x
php vendor/bin/easyswoole.php install
php easyswoole.php server start
```## Docker
### Get Docker Image
```
docker pull easyswoolexuesi2021/easyswoole:php8.1.22-alpine3.16-swoole4.8.13
```
> More Docker images can be viewed:[Docker Hub](https://hub.docker.com/r/easyswoolexuesi2021/easyswoole) or [Git for Dockerfile](https://github.com/XueSiLf/easyswoole-docker)### Run
```
docker run --name easyswoole \
-v /workspace/project:/var/www/project \
-p 9501:9501 -it \
--privileged -u root \
--entrypoint /bin/sh \
easyswoolexuesi2021/easyswoole:php8.1.22-alpine3.16-swoole4.8.13
```
- WorkerDir: ***/var/www***
- Run Easyswoole :
```bash
composer require easyswoole/easyswoole=3.7.x
php vendor/bin/easyswoole.php install
php easyswoole.php server start
```## Others
- [Git For Demo](https://github.com/easy-swoole/demo)
- QQ交流群
- VIP群 579434607 (本群需要付费599元)
- EasySwoole官方一群 633921431(已满)
- EasySwoole官方二群 709134628(已满)
- EasySwoole官方三群 932625047(已满)
- EasySwoole官方四群 779897753(已满)
- EasySwoole官方五群 853946743(已满)
- EasySwoole官方六群 524475224
- 商业支持:
- QQ 291323003
- EMAIL [email protected]