文档
手动安装
git clone https://github.com/swoft-cloud/swoft
cd swoft
composer install
cp .env.example .env
# 编辑 .env 文件,根据需要调整相关环境配置
swoft cli 创建
php swoftcli.phar create:app --type full Swoft-Full
php swoftcli.phar create:app --type ws Swoft-WebSocket
php swoftcli.phar create:app --type tcp Swoft-TCP
# wget https://github.com/swoft-cloud/swoft-cli/releases/download/{VERSION}/swoftcli.phar
# eg
wget https://github.com/swoft-cloud/swoft-cli/releases/download/v0.2.0/swoftcli.phar
# quick check
php swoftcli.phar -V
php swoftcli.phar -h