https://hyperf.wiki/2.2/#/zh-cn/quick-start/install
安装
Short Name
关闭Short Name
[swoole] extension = swoole.so swoole.use_shortname='Off'#添加这句
基于 Swoole 驱动:
composer create-project hyperf/hyperf-skeleton Copy to clipboardErrorCopied
composer create-project hyperf/hyperf-skeleton
基于 Swow 驱动:
composer create-project hyperf/swow-skeleton Copy to clipboardErrorCopiedc
composer create-project hyperf/swow-skeleton
不知道需不需要用的组件 直接回车略过,不然没配置好就会报错
启动项目
cd hyperf-skeleton php bin/hyperf.php start
如果修改代码后并重新执行 php bin/hyperf.php start 启动命令即可
php bin/hyperf.php start