• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

easyswoole: EasySwoole 是一款基于Swoole Server 开发的常驻内存型PHP框架,专为API ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

easyswoole

开源软件地址:

https://gitee.com/easyswoole/easyswoole

开源软件介绍:

Latest Stable VersionTotal DownloadsLatest Unstable VersionLicenseMonthly Downloads

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

<?phpnamespace 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:        EasySwooleServer Hostname:        192.168.0.11Server Port:            9501Document Path:          /Document Length:        21 bytesConcurrency Level:      100Time taken for tests:   0.652 secondsComplete requests:      10000Failed requests:        0Write errors:           0Total transferred:      1690000 bytesHTML transferred:       210000 bytesRequests 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:        EasySwooleServer Hostname:        192.168.0.4Server Port:            9501Document Path:          /Document Length:        21 bytesConcurrency Level:      100Time taken for tests:   0.746 secondsComplete requests:      10000Failed requests:        0Write errors:           0Total transferred:      1690000 bytesHTML transferred:       210000 bytesRequests 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.4.xphp vendor/bin/easyswoole installphp easyswoole server start

Docker

Get Docker Image

docker pull easyswoole/easyswoole3

Run

docker run -ti -p 9501:9501 easyswoole/easyswoole3
  • WorkerDir: /easyswoole
  • Run Easyswoole : php easyswoole server start

Others

  • Git For Demo

  • QQ交流群

    • VIP群 579434607 (本群需要付费599元)
    • EasySwoole官方一群 633921431(已满)
    • EasySwoole官方二群 709134628(已满)
    • EasySwoole官方三群 932625047(已满)
    • EasySwoole官方四群 779897753(已满)
    • EasySwoole官方五群 853946743
  • 商业支持:


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap