ttmama / solumen by ttmama

Lumen & Swoole
13
1
2
Package Data
Maintainer Username: ttmama
Maintainer Contact: dapeng.liu007@gmail.com (Robert.Liu)
Package Create Date: 2017-06-02
Package Last Update: 2017-06-05
Language: PHP
License: MIT
Last Refreshed: 2024-04-26 03:17:07
Package Statistics
Total Downloads: 13
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

solumen

Swoole with lumen

Depends On

  • php >= 7.1.*
  • laravel/lumen > 5.3.*
  • ext-swoole >= 1.9.*

安装

 composer require ttmama/solumen

剪切本类库 app 目录下的 Application.php 到项目根目录 app 目录下,修改项目根目录 bootstrap 目录中的 app.php

修改其中

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

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

使用

 vendor/bin/solumen start | stop | reload | restart | quit