Install Swoft

Docker installation (recommended)

 docker run -p 18306:18306 --name swoft swoft/swoft  

Docker-Compose installation (recommended)

 git clone https://github.com/swoft-cloud/swoft
cd swoft
docker-compose up 

Composer installation

 composer create-project swoft/swoft swoft 

Accelerate domestic download speeds with Packagist国内镜像 , see Composer configuration

Manual installation

 git clone https://github.com/swoft-cloud/swoft
cd swoft
composer install --no-dev # 不安装 dev 依赖会更快一些
cp .env.example .env
vim .env # 根据需要调整启动参数 
/docs/2.x/en/quick-start/install.html
progress-bar