php easyswoole --e,easyswoole: EasySwoole 是一款基于Swoole Server 开发的常驻内存型PHP框架,专为API而生,摆脱传统PHP运行模式在进程唤起和...

908f9305d0cc11731dc079f1e3d25b6b.png

stable

downloads

unstable

license

monthly

EasySwoole - A High Performance Swoole Framework

EasySwoole 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

ab Test

namespace App\HttpController;

use EasySwoole\Http\AbstractInterface\Controller;

/**

* Class Index

* @package App\HttpController

*/

class Index extends Controller

{

public function index()

{

$this->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: 9501

Document Path: /

Document Length: 21 bytes

Concurrency 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: 9501

Document Path: /

Document Length: 21 bytes

Concurrency 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.x

php vendor/bin/easyswoole install

php easyswoole start

Unit Test

after install easyswoole,run:

php easyswoole phpunit ./vendor/easyswoole/easyswoole/tests

Docker

Get Docker Image

docker pull easyswoole/easyswoole3

Run

docker run -ti -p 9501:9501 easyswoole/easyswoole3

WorkerDir: /easyswoole

Run Easyswoole : php easyswoole start

Others

QQ交流群

VIP群 579434607 (本群需要付费599元)

EasySwoole官方一群 633921431(已满)

EasySwoole官方二群 709134628

商业支持:

QQ 291323003

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值