swoole / swoole-src

🚀 Coroutine-based concurrency library for PHP
https://www.swoole.com
Apache License 2.0
18.41k stars 3.16k forks source link

swoole-cli 运行项目时如何使用xlswriter #5352

Closed Sheldon1024 closed 3 months ago

Sheldon1024 commented 3 months ago

swoole-cli 运行项目时如何使用xlswriter

NathanFreeman commented 3 months ago

xlswriter需要自己手动编译进去swoole-cli https://github.com/swoole/swoole-cli/blob/main/docs/linux.md

jingjingxyk commented 3 months ago

构建步骤中 关键点


php prepare.php +xlswriter

构建步骤:

需要定制构建选项, 修改 build-release.sh 文件 即可,大约 156行 左右,添加 xlswriter 选项即可

构建文档: https://github.com/swoole/swoole-cli/tree/main/docs

macOS 环境构建 :

git clone -b  main --recursive https://github.com/swoole/swoole-cli.git
cd swoole-cli

# 复制构建例子
cp build-release-example.sh  build-release.sh

# 执行构建即可
bash build-release.sh

linux 环境构建

git clone -b  main --recursive https://github.com/swoole/swoole-cli.git
cd swoole-cli

# 启动容器 
bashsapi/quickstart/linux/run-alpine-container.sh

# 进入容器 并初始化运行环境
bash sapi/quickstart/linux/connection-swoole-cli-alpine.sh
sh sapi/quickstart/linux/alpine-init.sh

# 复制构建例子
cp build-release-example.sh  build-release.sh

# 执行构建即可
bash build-release.sh