- Notifications
You must be signed in to change notification settings - Fork2
Releases: swoole/build-static-php
static php-cli v1.11.0
| item | value |
|---|---|
| branch | main |
| tag | v1.11.0 |
| support extensions | support extensions |
| build options | build options |
| swoole version | v6.1.1 |
| php version | 8.1.33,8.2.29,8.3.23,8.4.10 |
| suport OS platform | linux-x64 、linux-arm64、macos-x64、macos-arm64、windows-cygwin-x64 |
| release date | 2025-11-20 |
| build status | ok |
php-cli runtime
借助于swoole-cli 的构建流程,构建包含swoole 扩展的 PHP-CLI 运行时
变更:详情
- php 版本由 8.1.32, 8.2.28, 8.3.19, 8.4.5 升级为 8.1.33,8.2.29,8.3.23,8.4.10
- swoole 版本由
v6.0.2升级到v6.1.1 - 扩展 gd 启用支持 avif
- 扩展 imagick 启用支持 avif
- cygwin 环境扩展 gd 启用支持 webp
快速使用 包含swoole 的 php-cli 运行时
curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.11.0# 指定下载版本curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.11.0 --php-version v8.4.10
备注: macos环境下 首次运行 无权限 ,解决方法
note : macos clearing the com.apple.quarantine extended attribute
# 查看扩展属性 xattr ./runtime/php-cli/php# 去除扩展属性 sudo xattr -rd com.apple.quarantine ./runtime/php-cli/php
release files sha256sum (building)
Assets44
- sha256:6b96e505c066c1a628d05b899edd81b237ce78a617f2c754df227bfcb3a8a4a5482 MB
2025-11-20T04:17:48Z - sha256:d873e2e6abfe603c374633596175183b835398ab79929330d791068a2e76758d64 Bytes
2025-11-20T04:17:48Z - sha256:c5bcbd45916069f1d1952a8317c8848bb98e063f2ed32c7f0fbfc9b92f2b06684.05 KB
2025-11-20T04:17:48Z - sha256:d495290a40d4037fd1bfe298515a3bae0197332484589cbee0b3cc1641e4266382 MB
2025-11-20T05:06:42Z - sha256:85a7b1bfda5c0633835b6b9e49ff89c49d45149bae03e16748435ad601ae791136.9 MB
2025-11-20T05:01:09Z - sha256:df9fc6c93a73bc6ef13d716e3d92af321216152cc180b59a224c4f05a53730dc25.2 MB
2025-11-20T05:01:09Z - sha256:c07c92b8784d6b437e95de28a057f2e71e61036126b1bea2f6ac9d4f83da19ad40 MB
2025-11-20T05:42:50Z - sha256:8e252c832f3e20cffbaa389c8d0062f05589740d09cbfeaeb62c6d260c85e98c27.6 MB
2025-11-20T05:42:50Z - sha256:14b5c7d1c352bcea01f9406dfb6240d7b9faaa5fad772517b6bd9b85b6601e5225 MB
2025-11-20T09:14:17Z - sha256:fb29ca363935f48766e4fed3890bb5d70b3d7bb3a7967b1e7e0e263c969b99e823.8 MB
2025-11-20T09:14:17Z 2025-11-20T03:35:57Z 2025-11-20T03:35:57Z - Loading
Uh oh!
There was an error while loading.Please reload this page.
static php-cli v1.10.0
| item | value |
|---|---|
| branch | main |
| tag | v1.10.0 |
| support extensions | support extensions |
| build options | build options |
| swoole version | v6.0.2 |
| php version | 8.1.32, 8.2.28, 8.3.19, 8.4.5 |
| suport OS platform | linux-x64 、linux-arm64、macos-x64、macos-arm64、windows-cygwin-x64 |
| release date | 2025-04-30 |
| build status | ok |
php-cli runtime
借助于swoole-cli 的构建流程,构建包含swoole 扩展的 PHP-CLI 运行时
变更:详情
1. linux 构建环境启用 static-pie快速使用 包含swoole 的 php-cli 运行时
curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.10.0# 指定下载版本curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.10.0 --php-version v8.4.5
备注: macos环境下 首次运行 无权限 ,解决方法
note : macos clearing the com.apple.quarantine extended attribute
# 查看扩展属性 xattr ./runtime/php-cli/php# 去除扩展属性 sudo xattr -rd com.apple.quarantine ./runtime/php-cli/php
release files sha256sum (building)
Assets36
Uh oh!
There was an error while loading.Please reload this page.
php-cli v1.9.2
| item | value |
|---|---|
| branch | main |
| tag | v1.9.2 |
| swoole version | v6.0.2 |
| php version | 8.1.32, 8.2.28, 8.3.19, 8.4.5 |
| suport OS platform | linux-x64 、linux-arm64、macos-x64、macos-arm64、windows-cygwin-x64 |
| release date | 2025-04-25 |
php-cli runtime
借助于swoole-cli 的构建流程,构建包含swoole 扩展的 PHP-CLI 运行时
变更:详情
1. 修复macos x86_64 环境下 要求 cmake 最低版本3.5 2. 默认启动的扩展列表,移除 phpy 扩展(存在问题,待解决)快速使用 包含swoole 的 php-cli 运行时
curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.9.2# 指定下载版本curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.9.2 --php-version v8.4.5
备注: macos环境下 首次运行 无权限 ,解决方法
note : macos clearing the com.apple.quarantine extended attribute
# 查看扩展属性 xattr ./php# 去除扩展属性 sudo xattr -rd com.apple.quarantine ./php
Assets36
Uh oh!
There was an error while loading.Please reload this page.
php-cli v1.9.1
| item | value |
|---|---|
| branch | main |
| tag | v1.9.1 |
| swoole version | v6.0.2 |
| phpy version | 1.0.11 |
| php version | 8.1.32, 8.2.28, 8.3.19, 8.4.5 |
| suport OS platform | linux-x64 、linux-arm64、macos-x64、macos-arm64、windows-cygwin-x64 |
| release date | 2025-03-25 |
php-cli runtime
借助于swoole-cli 的构建流程,构建包含swoole 扩展的 PHP-CLI 运行时
变更:详情
1. swoole版本由v6.0.1 升级到v6.0.2 2. 修复macos 环境下 构建 swoole 扩展是链接错误(error: unknown type name 'pthread_barrier_t') 3. 增加odbc ,pdo_odbc ,gettext ,opentelemetry,phpy 扩展支持 4. 暂时禁用 cygwin 环境构建 php-cli 5. 默认启用 [phpy](https://github.com/swoole/phpy) 扩展 6. 打包 新增 PHP 8.1.32, 8.2.28, 8.3.19, 8.4.5 的源码包快速使用 包含swoole 的 php-cli 运行时
curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.9.1# 指定下载版本curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.9.1 --php-version v8.4.5
备注: macos环境下 首次运行 无权限 ,解决方法
note : macos clearing the com.apple.quarantine extended attribute
# 查看扩展属性 xattr ./php# 去除扩展属性 sudo xattr -rd com.apple.quarantine ./php
release files sha256sum (building)
Assets36
Uh oh!
There was an error while loading.Please reload this page.
build static link php-fpm v2.2.0
build static link php-fpm
静态编译 php-fpm
| item | value |
|---|---|
| branch | php-fpm |
| tag | php-fpm-v2.2.0 |
| php version | 8.1.32, 8.2.28, 8.3.19, 8.4.5 |
| suport OS platform | linux-x64 、linux-arm64、macos-x64、macos-arm64 |
| release date | 2025-03-25 |
借助于swoole-cli 的构建流程,构建FastCGI php-fpm
变更详情
1. 增加odbc ,pdo_odbc ,gettext ,opentelemetry,phpy 扩展支持快速使用 静态编译的 php-fpm 运行时
curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-fpm-runtime.sh?raw=true| bash# 独立启动php-fpm./bin/runtime/php-fpm -c ./bin/runtime/php.ini --fpm-config ./bin/runtime/php-fpm.conf -p ./bin/runtime/var
构建 静态 nginx 静态链接程序
快速启动 静态编译的nginx php-fpm
备注: macos环境下 首次运行 无权限 ,解决方法
note : macos clearing the com.apple.quarantine extended attribute
# 查看属性xattr ./bin/runtime/php-fpm# 去除扩展属性sudo xattr -rd com.apple.quarantine ./bin/runtime/php-fpm
Assets36
Uh oh!
There was an error while loading.Please reload this page.
php-cli v1.9.0
| item | value |
|---|---|
| branch | main |
| tag | v1.9.0 |
| swoole version | v6.0.1 |
| php version | 8.1.32, 8.2.28, 8.3.19, 8.4.5 |
| suport OS platform | linux-x64 、linux-arm64、macos-x64、macos-arm64、windows-cygwin-x64 |
| release date | 2025-03-18 |
php-cli runtime
借助于swoole-cli 的构建流程,构建包含swoole 扩展的 PHP-CLI 运行时
变更:详情
1. swoole版本由v6.0.0 升级到v6.0.1 2. PHP 8.1.31, 8.2.27, 8.3.15, 8.4.2 版本升级为 8.1.32, 8.2.28, 8.3.19, 8.4.5 3. 启用 pgsql 扩展快速使用 包含swoole 的 php-cli 运行时
curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.9.0# 指定下载版本curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.9.0 --php-version v8.4.5
备注: macos环境下 首次运行 无权限 ,解决方法
note : macos clearing the com.apple.quarantine extended attribute
# 查看扩展属性 xattr ./php# 去除扩展属性 sudo xattr -rd com.apple.quarantine ./php
release files sha256sum (building)
Assets24
Uh oh!
There was an error while loading.Please reload this page.
build static link php-fpm v2.1.0
静态编译 php-fpm
| item | value |
|---|---|
| branch | php-fpm |
| tag | php-fpm-v2.1.0 |
| php version | 8.1.32, 8.2.28, 8.3.19, 8.4.5 |
| suport OS platform | linux-x64 、linux-arm64、macos-x64、macos-arm64 |
| release date | 2025-03-18 |
借助于swoole-cli 的构建流程,构建FastCGI php-fpm
变更详情
1. PHP 8.1.31, 8.2.27, 8.3.15, 8.4.2 版本升级为 8.1.32, 8.2.28, 8.3.19, 8.4.5 2. 启用 pgsql 、pdo_pgsql 扩展快速使用 静态编译的 php-fpm 运行时
curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-fpm-runtime.sh?raw=true| bash# 独立启动php-fpm./bin/runtime/php-fpm -c ./bin/runtime/php.ini --fpm-config ./bin/runtime/php-fpm.conf -p ./bin/runtime/var
构建 静态 nginx 静态链接程序
快速启动 静态编译的nginx php-fpm
备注: macos环境下 首次运行 无权限 ,解决方法
note : macos clearing the com.apple.quarantine extended attribute
# 查看属性xattr ./bin/runtime/php-fpm# 去除扩展属性sudo xattr -rd com.apple.quarantine ./bin/runtime/php-fpm
Assets36
Uh oh!
There was an error while loading.Please reload this page.
php-fpm-v2.0.0
build static link php-fpm
静态编译 php-fpm
| item | value |
|---|---|
| branch | php-fpm |
| tag | php-fpm-v2.0.0 |
| php version | 8.1.31, 8.2.27, 8.3.15, 8.4.2 |
| suport OS platform | linux-x64 、linux-arm64、macos-x64、macos-arm64 |
| release date | 2025-02-28 |
借助于swoole-cli 的构建流程,构建FastCGI php-fpm
变更详情
- 启用 windows-linux-arm64 原生构建
- 弃用 x86_64 平台 使用qemu 模拟 arm64 构建环境
快速使用 静态编译的 php-fpm 运行时
curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-fpm-runtime.sh?raw=true| bash# 独立启动php-fpm./bin/runtime/php-fpm -c ./bin/runtime/php.ini --fpm-config ./bin/runtime/php-fpm.conf -p ./bin/runtime/var
构建 静态 nginx 静态链接程序
快速启动 静态编译的nginx php-fpm
备注: macos环境下 首次运行 无权限 ,解决方法
note : macos clearing the com.apple.quarantine extended attribute
# 查看属性xattr ./bin/runtime/php-fpm# 去除扩展属性sudo xattr -rd com.apple.quarantine ./bin/runtime/php-fpm
Assets36
Uh oh!
There was an error while loading.Please reload this page.
php-cli v1.8.0
| item | value |
|---|---|
| branch | main |
| tag | v1.8.0 |
| swoole version | v6.0.1 |
| php version | 8.1.31, 8.2.27, 8.3.15, 8.4.2 |
| suport OS platform | linux-x64 、linux-arm64、macos-x64、macos-arm64、windows-x64 |
| release date | 2025-02-28 |
php-cli runtime
借助于swoole-cli 的构建流程,构建包含swoole 扩展的 PHP-CLI 运行时
变更:详情
1. swoole版本由v6.0.0 升级到v6.0.1 2. 启用 windows-linux-arm64 原生构建 3. 弃用 x86_64 平台 使用qemu 模拟 arm64 构建环境快速使用 包含swoole 的 php-cli 运行时
curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.7.1# 指定下载版本curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.7.1 --php-version v8.4.2
备注: macos环境下 首次运行 无权限 ,解决方法
note : macos clearing the com.apple.quarantine extended attribute
# 查看扩展属性 xattr ./php# 去除扩展属性 sudo xattr -rd com.apple.quarantine ./php
release files sha256sum (building)
Assets40
Uh oh!
There was an error while loading.Please reload this page.
php-cli v1.7.1
| item | value |
|---|---|
| branch | main |
| tag | v1.7.1 |
| swoole version | v6.0.0 |
| php version | 8.1.31, 8.2.27, 8.3.15, 8.4.2 |
| suport OS platform | linux-x64 、linux-arm64、macos-x64、macos-arm64、windows-cygwin-x64 |
| release date | 2024-12-24 |
php-cli runtime
借助于swoole-cli 的构建流程,构建包含swoole 扩展的 PHP-CLI 运行时
变更:详情
1. swoole版本由v5.1.6 升级到v6.0.0 2. 启用 windows-cygwin-x64 构建 3. 默认构建的PHP版本由 8.1.30,8.2.25, 8.3.13,8.4.1 升级为 8.1.31,8.2.27,8.3.15,8.4.2快速使用 包含swoole 的 php-cli 运行时
curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.7.1# 指定下载版本curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true| bash -s -- --version v1.7.1 --php-version v8.4.2
备注: macos环境下 首次运行 无权限 ,解决方法
note : macos clearing the com.apple.quarantine extended attribute
# 查看扩展属性 xattr ./php# 去除扩展属性 sudo xattr -rd com.apple.quarantine ./php
release files sha256sum
27e8c6e491763519a0e05e80d15a3c1d292554460c09dbc77215cb69e4e55f51 all-deps.zip436691a37641c25dad74ba7937fb8b938cd9c1429c100624024af3f603ac7bd6 php-cli-v8.1.31-cygwin-x64.zipd90efb22c70209fd4c34acf5bfa2601aa2aea87c8fe487e1373d7e6b1b834fb7 php-cli-v8.1.31-linux-arm64-debug.tar.xz36b3c2f9a5ff590df4ce64b4524762028b03b8a837824a7ba5e224ad3e278c60 php-cli-v8.1.31-linux-arm64.tar.xz6a9f29c6b547e7ffff499b1b7c7b188bbdb16bb009eddd28174f59b634b57fc0 php-cli-v8.1.31-linux-x64-debug.tar.xz3572f9a873ba95320c4bee26e203865d61ba7749d85d74e8e45f07f08f760ae8 php-cli-v8.1.31-linux-x64.tar.xz7daa998cb94bed1686c8d7a854c2fccd4d2e219c843ca9658e5094bdf9f4e627 php-cli-v8.1.31-macos-arm64-debug.tar.xz2dde792a4b8040efa986e7a9356c28082392015985ffcd142daeffdcb636d9cc php-cli-v8.1.31-macos-arm64.tar.xzf6b3a944d05b81406b0c1b58c2914d1cb4f9c1d6a840827d51895ce618a73059 php-cli-v8.1.31-macos-x64-debug.tar.xz132161d414c51390610aa74a23b8773cff3831266e4b96df854a206c0c5bb501 php-cli-v8.1.31-macos-x64.tar.xz3133902512dfb94db7388df251d261c20de1f1cf800f63f12c82be375b0ab758 php-cli-v8.2.27-cygwin-x64.zip2fca46a4fc3aa825dc2dfd4a1f71f9d2421e35f10214b80f5b056cf400e8209a php-cli-v8.2.27-linux-arm64-debug.tar.xze28108b8adf78448a17b7a65f827e8ad517d9480265e8908fa97043f538c0ba3 php-cli-v8.2.27-linux-arm64.tar.xz02f4be1aece70b8b1eb52374e164ece455fc697f81efbab8bd5cbdc62e41e860 php-cli-v8.2.27-linux-x64-debug.tar.xz0f7f2dd29750db6e7ae8a708bb966825b1d28723419767a765e0e8da66da3d90 php-cli-v8.2.27-linux-x64.tar.xz6264252c3e1bbeaac5997ed58b285f62a113a42c2aeaf1bdfe8eb666c958cba4 php-cli-v8.2.27-macos-arm64-debug.tar.xz17da236b702f0d39a9fe26575e8d6397901d0a91d24af3d7387ec377cb2fda4a php-cli-v8.2.27-macos-arm64.tar.xz502a4a044d75cd971c1e92e6accb1320d46d94d67eae620e89e7210856ce59b0 php-cli-v8.2.27-macos-x64-debug.tar.xz9523150b8f6e6b28cb3d20e8b7f72b5b80ed9a40a97933f3e9fcb8627277261e php-cli-v8.2.27-macos-x64.tar.xz9b2f9a5b0430548b44ccecf1b6dfa1ff7a000d60128018e4541bd0a624634b95 php-cli-v8.3.15-cygwin-x64.zipd97332906926386d3db4ebae2b786e121a1239e62d2e0af414d42fb524bb8bcd php-cli-v8.3.15-linux-arm64-debug.tar.xz1db44f6cb0054cde026fb253518b5bf53403152e05e7e8a2aba6be43e6b96893 php-cli-v8.3.15-linux-arm64.tar.xz40567f169a7d790b44612c6a9a51dd6798511c37bf92fa0acee827be2ec137a7 php-cli-v8.3.15-linux-x64-debug.tar.xza53f91ffb1096ec3999c837e44045ee678c89af3e5c6538ebc56fb5e0bd932e1 php-cli-v8.3.15-linux-x64.tar.xz5353f9e73ca7b49e22e278a1f8c3ca18bff8042062394b4ba7faa0ba298009df php-cli-v8.3.15-macos-arm64-debug.tar.xz99d8e79b3987a7596585ab299b30c5987c2201ee73d74add2150d484432ae256 php-cli-v8.3.15-macos-arm64.tar.xza5dc6092e39c06d73246fb2711cb19b4a51ac509eb93e4d78a085663c7f5c908 php-cli-v8.3.15-macos-x64-debug.tar.xze59d7fb45ec17f4ac95763e7a81860b4e646323b80cb15eaf050759a4d7f0f07 php-cli-v8.3.15-macos-x64.tar.xze932ed17d4749c2448ed43452e30e5407b3defdb81372cd88a5e840f3c1ea75a php-cli-v8.4.2-cygwin-x64.zipd28fb3343a3eb460fc580f7013d6a4c0b9b74c2e8b1fd3fb8a085f12da5a60df php-cli-v8.4.2-linux-arm64-debug.tar.xz25f6a5b23cc03c6fb25ab511cada118ce174a24df92a2a00c9f8c58d0ae2d73d php-cli-v8.4.2-linux-arm64.tar.xz4e7f47412acffee5963a8b8393f4a27548562848c47d8a69a0a33b09b117e27f php-cli-v8.4.2-linux-x64-debug.tar.xzda46e7543a77cdc2a7eeb27b80a6904a51cf15d56781af99537f15cf7f42b6e5 php-cli-v8.4.2-linux-x64.tar.xz88f5c016e29c1d9720bcdbf4db4a273a20f6423afe20e66b1a1c0f93d07246f3 php-cli-v8.4.2-macos-arm64-debug.tar.xz8814565b31e6244a3ad80d0ab5a1513f78e34fa4fb9a7f1425eb0d7c02ff1ff1 php-cli-v8.4.2-macos-arm64.tar.xz1459e8b69bb060e2a578e8f8bca5ad2b5ca44fd022fe84218d533eae916c43d0 php-cli-v8.4.2-macos-x64-debug.tar.xzb969348186cade4a481215a61e02f54a596846a461125b1048d9eae1c0f0717d php-cli-v8.4.2-macos-x64.tar.xzAssets40
Uh oh!
There was an error while loading.Please reload this page.