Repository navigation
Releases
Releases · crazywhalecc/static-php-cli
3.0.0
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 Clan...
2.8.5
What's Changed
- fix(xlswriter): fix macOS build with modern Clang (C23) by @dunglas in #1086
- fix: icu-static-win, ext-swoole, krb5 by @crazywhalecc in #1087
- add "deepclone" extension by @henderkes in #1094
- add ext-decimal by @henderkes in #1095
- Fix paths for PostgreSQL library and header file copying on Windows by @crazywhalecc in #1102
- remove workaround for zig < 0.16 by @henderkes in #1105
- fix libkrb5 and decimal shard build by @henderkes in #1107
- Add linux mint to ubuntu/debian variants by @Pierstoval in #1109
- fix aarch64 shared extensions segfault with zig 0.16.0 by @henderkes in #1110
New Contributors
- @Pierstoval made their first contribution in #1109
Full Changelog: 2.8.4...2.8.5
2.8.4
What's Changed
- Improve zlib Windows library detection for future zlib versions by @hmennen90 in #1070
- Add Windows builders for libaom and brotli by @hmennen90 in #1072
- hard code protobuf version while we're on v2 by @henderkes in #1075
- libjpeg-turbo mustn't compile zlib symbols on its own by @henderkes in #1077
- [v2] Fix bunch of build bugs for Windows by @crazywhalecc in #1078
- Fix file paths for SQLSRV by @crazywhalecc in #1081
- add framework coreservices to watcher library by @henderkes in #1082
New Contributors
- @hmennen90 made their first contribution in #1070
Full Changelog: 2.8.3...2.8.4
2.8.3
What's Changed
- add input with-suggested-libs for build command by @yoramdelangen in #1032
- libavif needs at least one encoder to work by @henderkes in #1033
- fix redownloading go-xcaddy every time, version 2.8.3 by @henderkes in #1034
- Update build flags for FrankenPHP in UnixBuilderBase by @dunglas in #1042
- Add condition for ffi patch by @crazywhalecc in #1050
- Add php-src mirror and use gmp mirror site by @crazywhalecc in #1048
- set custom binary name for frankenphp, allow linking against system openssl (fix mssql issues) by @henderkes in #1056
- fix: FrankenPHP build args by @dunglas in #1057
- Fix grpc build by @crazywhalecc in #1055
- update default php version to 8.5 by @henderkes in #1058
- Fix zlib produced lib file names from different zlib version by @crazywhalecc in #1066
- Fix gd build on PHP 8.5 by @crazywhalecc in #1043
- Add shared-extensions, frankenphp and zts to build-unix workflow by @N-Silbernagel in #1062
- fix libde265 on ancient debian OS? by @henderkes in #1064
New Contributors
- @N-Silbernagel made their first contribution in #1062
Full Changelog: 2.8.2...2.8.3
2.8.2
What's Changed
- Add com_dotnet extension by @crazywhalecc in #1023
- fix: Postgres build with ancient libc by @dunglas in #1029
Full Changelog: 2.8.1...2.8.2
2.8.1
2.8.0
What's Changed
- add excimer extension by @henderkes in #1018
- bunch of fixes/changes to make packages build by @henderkes in #1006
- fix removal of directories with symlinks to directories
- add mysqlnd_parsec and mysqlnd_ed25519, closes #1000
- remove grpc library from grpc ext dependencies
- temporary swoole patch (remove when 6.2.0 releases!)
- don't build addons explicitly
- look for pkgconfig files in all PKG_CONFIG_PATHs so we don't build stuff when a system lib exists and we explicitly want to link against it
Full Changelog: 2.7.11...2.8.0
2.7.11
What's Changed
- the libwebp 1.6.0 bug affects centos 7 too by @henderkes in #1004
- macOS don't need to disable avx2 explicitly by @crazywhalecc in #1007
- Add MACOSX_DEPLOYMENT_TARGET to env.ini by @crazywhalecc in #1009
- Fix nghttp2 and curl build configurations for static linking by @crazywhalecc in #1014
Full Changelog: 2.7.10...2.7.11
2.7.10
What's Changed
- Fix cross-device warning in rename function by @crazywhalecc in #978
- add pcov extension (shared only, like xdebug) by @henderkes in #979
- Fix typo in ncurses.php enable-symlinks option by @crazywhalecc in #994
- update libwebp and libxml2 by @henderkes in #982
- Update version to 2.7.10 by @crazywhalecc in #997
Full Changelog: 2.7.9...2.7.10