daodao97/hyperf-watch

hyperf develop hot reload

This package's canonical repository appears to be gone and the package has been frozen as a result.

dev-master 2020-06-18 04:23 UTC

This package is auto-updated.

Last update: 2021-12-18 07:37:19 UTC


README

一个帮你在Hyperf开发时快速重启服务的小工具

安装

composer require daodao97/hyperf-watch dev-master --dev

修改composer.json

{
  "scripts": {
    "watch": [
      "Composer\\Config::disableProcessTimeout",
      "./vendor/bin/watch"
    ]
  }
}

Composer\\Config::disableProcessTimeout 帮助解除composer命令超时问题

./vendor/bin/watch 默认扫描根目录下除vendor外的php文件

./vendor/bin/watch vendor/*** 也可追加其他目录

示例