1. Go to this page and download the library: Download phpdic/swoole-auto-restart library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
phpdic / swoole-auto-restart example snippets
//启动服务的脚本,修改成你自己的
$startServiceCommand='/usr/bin/php easyswoole start';
$a = new \Phpdic\SwooleAutoRestart\swooleAutoRestart(__DIR__, $startServiceCommand);
$a->listen();