• Stars
    star
    4,737
  • Rank 8,925 (Top 0.2 %)
  • Language
    PHP
  • License
    Apache License 2.0
  • Created over 7 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

swoole,easyswoole,swoole framework

Latest Stable Version Total Downloads Latest Unstable Version License Monthly 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

<?php

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.5.x
php vendor/bin/easyswoole install
php 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(已满)
    • EasySwoole官方六群 524475224
  • 商业支持:

More Repositories

1

demo

PHP
414
star
2

doc-old

easyswoole文档
Shell
100
star
3

pay

A variety of payment solutions based on easyswoole.
PHP
86
star
4

wechat

Wechat based on easyswoole.
PHP
82
star
5

rpc

PHP
78
star
6

compiler

C
65
star
7

spider

a multi process spider base on easyswoole
PHP
53
star
8

kafka

PHP
42
star
9

mysqli

PHP
34
star
10

redis

PHP
34
star
11

orm

PHP
31
star
12

wstool

websocket test tool
JavaScript
29
star
13

doc

JavaScript
25
star
14

doc-3.3.x

JavaScript
25
star
15

verify-code

验证码生成类库
PHP
22
star
16

words-match

PHP
17
star
17

cache

配合easySwoole使用的轻量级缓存驱动
PHP
16
star
18

actor

PHP
15
star
19

elasticsearch

Elasticsearch client
PHP
14
star
20

component

PHP
13
star
21

code-generation

PHP
13
star
22

queue

A simple Queue implementation integrated into easySwoole
PHP
13
star
23

easy-whoops

Whoops to easySwoole framework 3.x
PHP
12
star
24

fast-cache

PHP
11
star
25

smtp

PHP
10
star
26

video-material

视频教材
10
star
27

pool

PHP
9
star
28

fast-db

PHP
8
star
29

utility

实用工具组件
PHP
8
star
30

http-client

PHP
7
star
31

apollo-config

PHP
7
star
32

curl

PHP
7
star
33

http

PHP
7
star
34

http-annotation

PHP
7
star
35

dns-server

PHP
6
star
36

redis-pool

PHP
6
star
37

ddl

PHP
6
star
38

mqtt

PHP
6
star
39

wsdebug

swoole 开发调试
PHP
6
star
40

atomic-limit

PHP
6
star
41

websocket-gate

PHP
6
star
42

consul

PHP
5
star
43

memcache

memcache
PHP
5
star
44

mysqli-pool

PHP
5
star
45

etcd-client

PHP
5
star
46

template

PHP
5
star
47

crypto

PHP
5
star
48

spl

PHP
5
star
49

hot-reload

auto hot reload manager
PHP
5
star
50

console

PHP
5
star
51

mongodb

PHP
5
star
52

task

PHP
5
star
53

app

the new easyswoole application
PHP
5
star
54

nsq

NSQ客户端
PHP
4
star
55

log

PHP
4
star
56

file-watcher

PHP
4
star
57

jwt

PHP
4
star
58

o-auth

PHP
4
star
59

validate

PHP
4
star
60

phpunit

PHP
3
star
61

tracker

PHP
3
star
62

admin

PHP
3
star
63

bridge

PHP
3
star
64

socket

PHP
3
star
65

database-migrate

PHP
3
star
66

session

PHP
3
star
67

easy-printer

Use cloud printer easily
PHP
3
star
68

oss

PHP
3
star
69

superDebug

superDebug
PHP
3
star
70

proxy

PHP
2
star
71

trace

PHP
2
star
72

memcache-pool

PHP
2
star
73

trigger

PHP
2
star
74

parsedown

PHP
2
star
75

linux-dash

PHP
2
star
76

doctrine-annotations

PHP
2
star
77

http-annotation-swagger

HTML
2
star
78

apollo

PHP
2
star
79

crontab

PHP
2
star
80

hyperf-orm

PHP
2
star
81

config

PHP
2
star
82

i18n

PHP
2
star
83

job-queue

PHP
2
star
84

annotation

PHP
2
star
85

u-editor

PHP
1
star
86

doc-3.7

JavaScript
1
star
87

doc-system

Less
1
star
88

policy

PHP
1
star
89

sync-invoker

PHP
1
star
90

command

PHP
1
star