crocodile2u / phpwatch
v1.1.0
2019-09-11 05:35 UTC
Requires
- php: >=7.3.0
- ext-inotify: *
- ext-pcntl: *
- ext-posix: *
README
Watch current working directory for changes in files and execute a callback once a change is detected.
Particularly useful to restart an async web-server based on swoole or amphp. A binary is included:
# restart AMPHP web-server once a change in PHP files is detected
./vendor/bin/phpwatch.php php httpserver.php