Skip to content

Latest commit

 

History

History
55 lines (48 loc) · 869 Bytes

File metadata and controls

55 lines (48 loc) · 869 Bytes

安装驱动

一. 使用workerman驱动

composer require microphp/workerman

二. 使用roadrunner驱动

composer require microphp/roadrunner
  1. 安装roadrunner二进制文件
    php bin/console roadrunner:get
  2. 修改.env中驱动
    SERVER_DRIVER=roadrunner

三. 使用swoole驱动

composer require microphp/swoole
  1. 修改.env中驱动
    SERVER_DRIVER=swoole
  2. 发布配置
    php bin/console config:publish swoole

四. 使用AMP驱动

composer require microphp/amp

运行

php bin/console start

格式化代码

composer cs ./app

生成Swagger文档

发布配置
php bin/console config:publish swagger
生成文档
php bin/console swagger:gen