Code Monkey home page Code Monkey logo

easyswoole's Introduction

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
  • 商业支持:

easyswoole's People

Contributors

kiss291323003 avatar player626 avatar evalor avatar tioncico avatar windrunner414 avatar huizhang001 avatar xuesilf avatar hanwenbo avatar chrisleeareemm avatar xuhaoxian avatar willove avatar joyboo avatar kajweb avatar davidzhang12138 avatar anythink-wx avatar tim1116 avatar wandoubaba avatar sy-records avatar 2pgcn avatar pandasir avatar osindex avatar no-serve-people avatar wi1dcard avatar iamvar avatar acrossmountain avatar pppscn avatar encircles avatar heelie avatar 137-rick avatar id0612 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.