Repository navigation
Releases: KonstantinKai/proto-php-plugin
Releases · KonstantinKai/proto-php-plugin
Release list
v0.5.0
Breaking
- Requires proto >= 0.56.0. Older versions do not send the
working_dircontext field the plugin now expects.
Fixes
- Fixed the
missing field tool_direrror on recent proto releases, which removed the deprecatedtool_dirfield from the unresolved plugin context.
Improvements
- Updated to
proto_pdk0.35,proto_pdk_test_utils0.49, andschematic0.20. - Replaced the removed
VirtualPath::real_pathwithto_real_path, which now returns aResultof an optionalRealPath. - Filled in the new
BuildInstructionsOutput.http_headersfield via the struct default.
v0.4.0
What's Changed
- spc as primary build-from-source method — PHP 8.x builds now use static-php-cli (
spc) to produce fully-static binaries with configurable extensions and SAPI support. PHP 7.x and customconfigure-optsfall back to traditional php.netconfigure/make. extensionsconfig option — customize the extension list for spc source builds (defaults to the 37 extensions matching prebuilt binaries).- Fix VirtualPath issue — resolved
--prefixusing virtual WASI path instead of real filesystem path in php.net builds. spc doctor --auto-fix— automatically fixes missing build dependencies during spc builds.- Clarified
sapiscope — applies to prebuilt binaries and spc source builds; php.net path usesconfigure-optsinstead.
Troubleshooting docs
Added README sections for common build issues:
- macOS: PHP 7.x OpenSSL 3.x incompatibility
- macOS: PHP 7.x DNS resolver linking error
- macOS: PHP 7.x PCRE JIT allocation failure
- macOS: iconv issue
- spc: GitHub API rate limit (403)
v0.3.0
What's Changed
New: SAPI selection
Install fpm or micro SAPI binaries from static-php-cli instead of only cli:
[tools.php]
sapi = "fpm"Supported values: cli (default), fpm, micro. Only applies to Linux/macOS prebuilt binaries.
Removed: Checksum verification
Removed the SHA-256 checksum verification system (releases.json, probe script, weekly update workflow). Maintaining a separate index per version/platform/sapi combination added significant complexity without enough benefit.
Other
dist-urltemplate now supports{sapi}placeholder- Invalid
sapivalues produce a clear error message
v0.2.0
What's Changed
Releases Index & Checksum Verification
download_prebuiltnow fetches the releases index to validate that a prebuilt binary exists for the requested version and platform before downloading- SHA-256 checksum verification — proto automatically verifies download integrity using checksums from the releases index
- Helpful error messages when a version or platform is unavailable, with suggestions for nearby versions and the
--buildflag
Other
- Added CI, Release, and License badges to README
- Corrected prebuilt extension list to match static-php-cli source (37 extensions)
- Updated probe script to compute checksums incrementally
Full Changelog: v0.1.0...v0.2.0
v0.1.0
Initial Release
A proto WASM plugin for managing PHP versions using pre-built static binaries.
Features
- Install PHP versions via
proto install php 8.4 - Pre-built static binaries from static-php-cli (Linux & macOS, x64 & arm64)
- Windows support via official windows.php.net binaries
- Build from source fallback using official php.net tarballs (
proto install php 8.4 --build) - Version detection from
.php-versionandcomposer.json(require.php) - Configurable
./configureflags for source builds - Weekly releases index tracking available prebuilt versions