StaticPHP v3 First Release !!!
Community
Join the StaticPHP Discord for release announcements, build help, and extension/library discussion:
Major updates from v2
- Add registry system for declarative package, artifact, and build-target definitions.
- Add package model for PHP extensions, libraries, targets, virtual targets, and tools, with dependency resolution and ordered build/install stages.
- Add artifact abstraction with multiple source types (GitHub releases/tags, PHP releases, file lists, PECL, PIE, Git, custom URLs), checksum validation, caching, and
check-updatesupport. - Add parallel artifact downloads for significantly faster dependency fetching.
- Add new toolchain layer with native GCC/Clang, MSVC, and Zig cross-compilation support.
- Add cross-compilation targets for Linux musl/glibc (including glibc 2.17), macOS, and Windows architectures.
- Replace the v2 Windows PHP SDK workflow with a managed MSYS2 build environment.
- Add dynamic target commands such as
build:php,build:php-cli,build:php-fpm,build:php-micro,build:frankenphp, andbuild:curl. - Add
craftandcraft.ymlfor one-shot, reproducible build configuration. - Add new CLI commands including
reset,build:libs,install-pkg,check-update,dev:shell,dev:dump-stages, anddev:dump-capabilities. - Add Doctor auto-fix and tool provisioning for build-environment setup.
- Add PHP 8.6 support alongside PHP 8.1–8.5.
- Rework the build pipeline around package stages, hooks, source syncing, patching, and per-SAPI build logic for CLI, FPM, CGI, micro, embed, and FrankenPHP.
- Rework CLI options and configuration around the v3 package/artifact model, with a dedicated v2 migration guide.
What's Changed
- [v3] feat/go xcaddy hash by @crazywhalecc in #983
- [v3] Add musl-wrapper and musl-toolchain installation support by @crazywhalecc in #984
- Enhance musl-wrapper and musl-toolchain installation process by @crazywhalecc in #988
- Fix argument naming in InstallPackageCommand for clarity by @crazywhalecc in #989
- V3 feat/tool check by @crazywhalecc in #990
- Refactor BUILDROOT_ABS initialization to provide a default path by @crazywhalecc in #991
- V3 feat/re2c by @crazywhalecc in #992
- Refactor test structure and update paths for improved organization by @crazywhalecc in #995
- Add early validation for package build and installation requirements by @crazywhalecc in #996
- V3 feat/win by @crazywhalecc in #999
- 3.0: skeleton - package config and code generator by @crazywhalecc in #1001
- v3-refactor: Implement v2 libs by @crazywhalecc in #1021
- V3 fix/phpunit by @crazywhalecc in #1024
- Refactor Linux and macOS tool checks for improved error handling and command execution by @crazywhalecc in #1025
- Add frankenphp support for v3 by @crazywhalecc in #1026
- Add PECL download type and support for PECL artifacts by @crazywhalecc in #1045
- [3.0] Add
check-updatecommand andCheckUpdateInterfacefor artifacts by @crazywhalecc in #1044 - [3.0] Refactor new extensions by @crazywhalecc in #1051
- [3.0] Refactor extensions by @crazywhalecc in #1038
- [3.0] Refactor windows libs by @crazywhalecc in #1067
- fix(xlswriter): fix macOS build with modern Clang (C23) by @dunglas in #1086
- fix: icu-static-win, ext-swoole, krb5 by @crazywhalecc in #1087
- [3.0] Refactor windows extensions by @crazywhalecc in #1073
- V3 refactor/craft by @crazywhalecc in #1091
- [3.0] Remove v2 code from v3 branch by @crazywhalecc in #1096
- V3 refactor/forward port decimal by @crazywhalecc in #1098
- [3.0] Add frankenphp single executable build for Windows by @crazywhalecc in #1099
- [v3] docs update: guide part by @crazywhalecc in #1112
- V3 docs by @crazywhalecc in #1119
- V3 refactor/forward ports by @crazywhalecc in #1123
- StaticPHP v3 by @crazywhalecc in #980
- Update deployment workflow and enhance documentation build process by @crazywhalecc in #1131
- Add dev:gen-ext-test-matrix command by @crazywhalecc in #1133
- Feat/clickhouse by @henderkes in #1137
- Add a Log Filter to Strip Github Tokens by @luthermonson in #1147
- fix windows test failures: path separators and arch normalization by @luthermonson in #1148
- [v3] fix(macos): static build remove -fno-plt from macOS CFLAGS by @luthermonson in #1150
- [v3] fix: use ftpmirror.gnu.org instead of ftp.gnu.org by @luthermonson in #1151
- [v3] fix(windows): static builds vswhere.exe -product * by @luthermonson in #1149
- V3 check/2 by @crazywhalecc in #1157
- V3 check/3 by @crazywhalecc in #1158
- V3 check/4 by @crazywhalecc in #1159
- revert useless patch by @henderkes in #1160
- watcher: drop ldflags from compile-only invocation by @henderkes in #1161
- imagemagick: --without-gcc-arch by @henderkes in #1162
- artifact: use {pkg_root_path} template in rust and go_win extract by @henderkes in #1164
- patch: strip trailing U+200E from spc_fix_avx512_cache_before_80400.p… by @henderkes in #1167
- deduplicate_flags: keep paired flag+value tokens together by @henderkes in #1168
- LinuxMuslCheck: pass tool env via setEnv instead of command prefixes by @henderkes in #1170
- toolchain: add SPC_DEFAULT_RANLIB and pin cmake AR/RANLIB by @henderkes in #1163
- feat: add permissions for id-token and attestations in release build by @crazywhalecc in #1181
- Add macports support by @beryllium in #1179
- ext: add ext-fastchart and ext-fastjson registry entries by @henderkes in #1165
- refactor: remove unused symfony/process and unnecessary laravel/prompts by @crazywhalecc in #1187
- v3: Fix gmssl build by @crazywhalecc in #1188
- feat: enhance type hints and improve verbosity handling in commands by @crazywhalecc in #1186
- Add Visual Studio 2026 support by @crazywhalecc in #1191
- Remove laravel/prompts from box.json by @crazywhalecc in #1190
- fix(test): fix redundant terminal output during phpunit by @crazywhalecc in #1194
- feat(windows): replace php-sdk-binary-tools with MSYS2 + 7za-win by @crazywhalecc in #1193
- [v3] implement tool package support with validation and config by @crazywhalecc in #1196
- feat(zip): add additional dependencies for Windows zip build by @crazywhalecc in #1198
- CRLF to LF by @crazywhalecc in #1199
- feat(docs): add agent guide, build class patterns, log triage, and AI instructions by @crazywhalecc in #1202
- feat(v3): Tool package refactor by @crazywhalecc in #1200
- Test bot separate by @crazywhalecc in #1206
- fix(frankenphp): strip Go's -mthreads so the Windows build survives Clang >= 20 by @m-this in #1201
- [v3] Enable SQLite column metadata by @JanJakes in #1205
- v3 weekly build fix by @crazywhalecc in #1203
- [v3] - fix(windows): resolve doctor-installed perl and quote perl path by @luthermonson in #1174
- Fix the Windows extension test failures on fable-v3-windows by @m-this in #1208
- fix(windows): survive cmd.exe's 8191 character command line limit by @m-this in #1209
- Fable v3 windows by @henderkes in #1207
- feat(manifest): implement BuildManifestDumper for generating build manifest by @crazywhalecc in #1210
- Docs ai by @crazywhalecc in #1212
- Add JetBrains logo and OSS license information by @henderkes in #1217
- Feat/pgo v3 split by @crazywhalecc in #1214
- feat(spc-config): Separate resolved and non-resolved functions in spc-config by @crazywhalecc in #1216
- feat: Add phar release by @crazywhalecc in #1219
- Migrate extension sources from pecl to pie by @crazywhalecc in #1218
- fix: update libaom POSIX_C_SOURCE patch context for current CMakeLists.txt by @dunglas in #1223
- feat(docs): Doc update by @crazywhalecc in #1220
- php 8.6 compatibility with all bundled extensions by @henderkes in #1226
- Fix Swoole thread context handling for NTS builds by @crazywhalecc in #1229
- update php-rar by @henderkes in #1227
- fix php_source_dir and custom-ini build failure by @henderkes in #1230
- Feat/ext http by @henderkes in #1233
- V3 refactor/pgo split by @crazywhalecc in #1234
- fix pgsql and other polyfill libs leaking into configure by @henderkes in #1236
- frankenphp: build the Mercure hub with its 0.x compatibility tags by @dunglas in #1240
- Enable lcms2 delegate in ImageMagick builds for imagick ICC profile workflows by @henderkes with @Copilot in #1243
- fix macos -frameworks missing from configure libs by @henderkes in #1241
- Respect configured -march when building libargon2 by @henderkes in #1247
- fix imap c-client headers leaking into configure by @edram in #1237
- Add proxy support for downloads via SPC_PROXY environment variable by @crazywhalecc in #1248
- Fix mimalloc download by @dunglas in #1250
- Fix the macOS nightly build by @dunglas in #1251
- Switch mimalloc to the v3 line by @dunglas in #1252
- Link mimalloc into binaries embedding PHP by @dunglas in #1253
- llvm-tools: build host llvm-objcopy/strip/profdata under ZigToolchain by @henderkes in #1172
- V3c/llvm tools prev by @crazywhalecc in #1254
- Fix doctor on fresh Linux, auto-install llvm-tools for cross builds by @crazywhalecc in #1256
- V3c/refactor pgo br by @crazywhalecc in #1228
- feat: add JetBrains as a sponsor and update logo in documentation by @crazywhalecc in #1258
- fix: unblock hosted builds (Swoole snprintf, static libpq) by @crazywhalecc in #1260
- feat: apply official minimal backports for CVE-2026-109618 and CVE-2026-109619 to PHP 7.4, 8.0, and 8.1 by @crazywhalecc in #1261
- fix: unblock hosted 8.4/8.5 builds (imap stub + SSL link) by @crazywhalecc in #1264
- fix: silence expected net-snmp legacy provider warning by @crazywhalecc in #1266
- fix(rar): keep the PHP Windows SDK WINVER for unrar os.hpp by @crazywhalecc in #1263
- fix(rar): undef PARSE_SERVER before unrar includes on Windows by @crazywhalecc in #1268
- feat(frankenphp): allow passing extra Go build flags, ldflags and tags by @dunglas in #1269
- libraries: honour SPC_DEFAULT_CFLAGS/CXXFLAGS/LDFLAGS and bug fixes by @henderkes in #1166
- fix(zig): ensure zig path is added to PATH during initialization by @crazywhalecc in #1271
- fix(docs): update Windows download links to use x64 version by @crazywhalecc in #1272
- fix: drop stale "not available on Windows" from --build-embed and --build-frankenphp help by @m-this in #1276
- fix: add GitHub token handling for downloads from PIE by @crazywhalecc in #1278
- fix(chore): improve toolchain package handling and clean extension sources during PHP version switch by @crazywhalecc in #1279
- fix(curl): enhance Windows TLS backend support and update documentation by @crazywhalecc in #1277
- fix(frankenphp): point pkg-config at the buildroot on Windows by @m-this in #1281
- fix(frankenphp): drop the -mthreads shim now that Go no longer passes the flag by @m-this in #1280
- Add PHP 8.5 to build-unix workflow options by @deepakmishra2 in #1285
- fix(ffi): don't enable Zend signals by @tina-junold in #1283
- fix(shell): read command output until EOF after the process exits by @m-this in #1274
- fix(frankenphp): honour --with-frankenphp-app on Windows by @m-this in #1275
- fix: enhance compatibility with GmSSL and improve C++ runtime linking by @crazywhalecc in #1286
- V3c/pgo split 1 by @crazywhalecc in #1287
- fix(cmake): ignore /usr/local prefix on Darwin so host headers cannot shadow buildroot by @theluckystrike in #1290
- fix(attr): serialize installation of attributes.h to avoid race conditions by @crazywhalecc in #1291
- fix(smoke-test): load shared extensions built with php in the cli smo… by @kennaar in #1293
- Upgrade OpenSSL source selection to 4.x by @henderkes in #1298
- fix cross-compiling with zig by @henderkes in #1299
- Remove pre-release note for PHP versions support by @henderkes in #1300
- Add -Wno-gcc-install-dir-libstdcxx for zig dumpversion by @prolic in #1301
- feat(build): add support for PHP 8.6 and enhance build configurations by @crazywhalecc in #1302
- fixes #1015 with linker script by @henderkes in #1316
- chore(release): prepare 3.0.0 and publish LATEST_VERSION.txt by @crazywhalecc in #1318
- docs: update documentation for v3.0 and clarify installation instructions by @crazywhalecc in #1323
New Contributors
- @beryllium made their first contribution in #1179
- @m-this made their first contribution in #1201
- @henderkes with @Copilot made their first contribution in #1243
- @edram made their first contribution in #1237
- @deepakmishra2 made their first contribution in #1285
- @tina-junold made their first contribution in #1283
- @theluckystrike made their first contribution in #1290
- @kennaar made their first contribution in #1293
- @prolic made their first contribution in #1301
Full Changelog: 2.8.4...3.0.0