2017 © Pedro Peláez
 

library laravel-swoole

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

image

swooletw/laravel-swoole

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  • Monday, July 30, 2018
  • by albertcht
  • Repository
  • 65 Watchers
  • 1095 Stars
  • 5,163 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 69 Forks
  • 4 Open issues
  • 29 Versions
  • 179 % Grown

The README.md

Warning, (*1)

This package is no longer maintained, we strongly recommend using Laravel's official laravel/octane as an alternative., (*2)

If you need coroutine support, consider trying Hypervel for higher performance (This is a Laravel-style coroutine framework.), (*3)

Laravel-Swoole

php-badge packagist-badge Total Downloads Scrutinizer Code Quality travis-badge, (*4)

This package provides a high performance HTTP server to speed up your Laravel/Lumen application based on Swoole., (*5)

Version Compatibility

PHP Laravel Lumen Swoole
>=7.2 >=5.5 >=5.5 >=4.3.1

Features

  • Run Laravel/Lumen application on top of Swoole.
  • Outstanding performance boosting up to 5x faster.
  • Sandbox mode to isolate app container.
  • Support running websocket server in Laravel.
  • Support Socket.io protocol.
  • Support Swoole table for cross-process data sharing.

Documentation

Please see Wiki, (*6)

Benchmark

Test with clean Lumen 5.6, using DigitalOcean 3 CPUs / 1 GB Memory / PHP 7.2 / Ubuntu 16.04.4 x64, (*7)

Benchmarking Tool: wrk, (*8)

wrk -t4 -c100 http://your.app

Nginx with FPM

wrk -t4 -c10 http://lumen-swoole.local

Running 10s test @ http://lumen-swoole.local
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     6.41ms    1.56ms  19.71ms   71.32%
    Req/Sec   312.99     28.71   373.00     72.00%
  12469 requests in 10.01s, 3.14MB read
Requests/sec:   1245.79
Transfer/sec:    321.12KB

Swoole HTTP Server

wrk -t4 -c10 http://lumen-swoole.local:1215

Running 10s test @ http://lumen-swoole.local:1215
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.39ms    4.88ms 105.21ms   94.55%
    Req/Sec     1.26k   197.13     1.85k    68.75%
  50248 requests in 10.02s, 10.88MB read
Requests/sec:   5016.94
Transfer/sec:      1.09MB

Q&A

The common questions are collected in Q&A. You can go check if your question is listed in the document., (*9)

Issues and Support

Please read Issues Guideline before you submit an issue, thanks., (*10)

Bugs and feature request are tracked on GitHub., (*11)

Credits

Huang-Yi, , (*12)

Alternatives

License

The Laravel-Swoole package is open-sourced software licensed under the MIT license., (*13)

Support on Beerpay

Hey dude! Help me out for a couple of :beers:!, (*14)

Beerpay Beerpay, (*15)

The Versions

30/07 2018

dev-feature/coroutine_feature

dev-feature/coroutine_feature

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

28/07 2018

dev-master

9999999-dev

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

16/06 2018

dev-develop

dev-develop

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

12/06 2018

v2.4.1

2.4.1.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

12/06 2018

v2.4.0

2.4.0.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

26/05 2018

v2.3.9

2.3.9.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

13/05 2018

v2.3.8

2.3.8.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

12/05 2018

v2.3.7

2.3.7.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

10/05 2018

v2.3.6

2.3.6.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

10/05 2018

v2.3.5

2.3.5.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

07/05 2018

v2.3.4

2.3.4.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

05/05 2018

v2.3.3

2.3.3.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

05/05 2018

v2.3.2

2.3.2.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

05/05 2018

v2.3.1

2.3.1.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

04/05 2018

v2.3.0

2.3.0.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

29/04 2018

v2.2.1

2.2.1.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

29/04 2018

v2.2

2.2.0.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

15/04 2018

v2.1.1

2.1.1.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

14/04 2018

v2.1.0

2.1.0.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

04/03 2018

dev-feature/websocket_feature

dev-feature/websocket_feature

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

24/02 2018

v2.0.6

2.0.6.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

03/12 2017

2.0.5

2.0.5.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

03/12 2017

dev-huang-yi

dev-huang-yi

High performance HTTP server based on Swoole. Speeds up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

11/11 2017

v2.0.4

2.0.4.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

06/11 2017

2.0.3

2.0.3.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

06/11 2017

2.0.2

2.0.2.0

High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

19/10 2017

2.0.x-dev

2.0.9999999.9999999-dev

High performance HTTP server based on Swoole. Speeds up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

19/10 2017

2.0.1

2.0.1.0

High performance HTTP server based on Swoole. Speeds up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance

02/10 2017

2.0.0

2.0.0.0

High performance HTTP server based on Swoole. Speeds up your Laravel and Lumen applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Huang Yi

laravel lumen server http swoole performance