2017 © Pedro Peláez
 

library sword

lumen run in swoole_http_server

image

onex/sword

lumen run in swoole_http_server

  • Monday, April 24, 2017
  • by bryantyan
  • Repository
  • 9 Watchers
  • 6 Stars
  • 52 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 4 Versions
  • 16 % Grown

The README.md

sword

Summary (简述)

Sword is a tool used on lumen. It allows the lumen to run in memory. Each request is only to be used for the Controller class, and no need to initialize the entire framework, which greatly improve the performance of the high performance., (*1)

Sword 是用在lumen上的一个工具。它可以使lumen常驻运行内存中。每次请求都只实例化Controller等类,而不需要初始化整个框架,从而大幅度提运行高性能。, (*2)

Notice

installed

composer require onex/sword
  • 复制Application.php到app目录下
copy lumen_project_dir/vendor/onex/sword/misc/Application.php lumen_project_dir/app/
  • 修改 $app实例化的类
// 位于lumen_project_dir/bootstrap/app.php文件

//$app = new Laravel\Lumen\Application(
//   realpath(__DIR__.'/../')
//);

//修改为以下内容
$app = new App\Application(
    realpath(__DIR__.'/../')
);

run

vendor/bin/sword

config

The Versions

24/04 2017

dev-master

9999999-dev

lumen run in swoole_http_server

  Sources   Download

BSD-3-Clause

The Requires

 

lumen swoole webserver

24/04 2017

0.0.3

0.0.3.0

lumen run in swoole_http_server

  Sources   Download

BSD-3-Clause

The Requires

 

lumen swoole webserver

02/08 2016

0.0.2

0.0.2.0

lumen run in swoole_http_server

  Sources   Download

BSD-3-Clause

The Requires

 

lumen swoole webserver

29/07 2016

0.0.1

0.0.1.0

lumen run in swoole_http_server

  Sources   Download

BSD-3-Clause

The Requires

 

lumen swoole webserver