2017 © Pedro PelĂĄez
 

library swoole

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

image

bulaohe/swoole

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

  • Monday, July 2, 2018
  • by Bulaohe
  • Repository
  • 1 Watchers
  • 1 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 39 % Grown

The README.md

swoole

Integrate Swoole into Laravel and Lumen 5.5,5.7,5.8,6.x, (*1)

This pacakge is a rewrite of huang-yi/laravel-swoole-http, Thanks to Huang Yi coodeer@163.com.

Notice

You should reset the instances of Singleton mode Facades Classes in the method register of your self-defined ServiceProvider like below: 1. add clear code in the register function Facade::clearResolvedInstance('your-service-alias-name');, (*2)

  1. add config/http.providers your service provider App\Providers{YourProvider}::class,

start command

php artisan swoole:http --host=0.0.0.0 --port=9807 --pid_file=/tmp/swoole1.pid start/stop/reload/restart, (*3)

php artisan swoole:http --host=0.0.0.0 --port=9808 --pid_file=/tmp/swoole2.pid start/stop/reload/restart, (*4)

nginx conf

server { listen 80; server_name your_server_name; root /var/www/logistics/public; index index.php;, (*5)

location = /index.php {
    # Ensure that there is no such file named "not_exists" in your "public" directory.
    try_files /not_exists @swoole;
}

location / {
    try_files $uri $uri/ @swoole;
}

location @swoole {
    set $suffix "";

    if ($uri = /index.php) {
        set $suffix "/";
    }

    proxy_set_header Host $host;
    proxy_set_header SERVER_PORT $server_port;
    proxy_set_header REMOTE_ADDR $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    # IF https
    # proxy_set_header HTTPS "on";

    proxy_pass http://127.0.0.1:9807$suffix;
}

}, (*6)

The Versions

02/07 2018

dev-httpserver

dev-httpserver

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

02/07 2018

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

 

laravel lumen server http swoole performance

02/07 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

02/07 2018

1.0.13

1.0.13.0

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

02/04 2018

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

 

laravel lumen server http swoole performance

02/04 2018

1.0.12

1.0.12.0

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

20/03 2018

1.0.11

1.0.11.0

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

16/03 2018

1.0.10

1.0.10.0

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

09/03 2018

1.0.9

1.0.9.0

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

02/03 2018

1.0.8

1.0.8.0

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

27/02 2018

1.0.7

1.0.7.0

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

29/01 2018

1.0.3

1.0.3.0

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

28/01 2018

1.0.2

1.0.2.0

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

28/01 2018

1.0.1

1.0.1.0

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance

28/01 2018

1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

laravel lumen server http swoole performance