Automated cross-platform PHP builds for Linux, macOS, and Windows with pre-compiled binaries and checksums.
This repository provides pre-built PHP binaries for multiple platforms and architectures:
- Linux: x64 and ARM64 (aarch64)
- macOS: ARM64 (Apple Silicon)
- Windows: x64
All builds include commonly used extensions and are optimized for production use.
Currently available PHP versions:
- PHP 8.1.34
- PHP 8.2.30
- PHP 8.3.29
- PHP 8.4.16
- PHP 8.5.1
Visit the Releases page to download pre-built binaries for your platform.
Each release includes:
- Compiled PHP binary
- PHP-FPM (Linux)
- Common extensions (curl, gd, mbstring, etc.)
php.iniwith recommended settings- SHA256 checksums
All releases provide checksums for security verification:
sha256sum -c checksums.txtLinux/macOS:
tar -xzf php-X.X.X-<platform>.tar.gz
./bin/php --versionWindows:
Expand-Archive -Path php-X.X.X-windows-x64.zip -DestinationPath php
php\bin\php.exe --versionAll builds include the following PHP extensions:
- bcmath
- bz2
- calendar
- ctype
- curl
- dom
- exif
- fileinfo
- ftp
- gd
- gettext
- gmp
- intl
- mbstring
- mysqli
- opcache (enabled by default)
- pdo_mysql
- pdo_pgsql
- pdo_sqlite
- pgsql
- phar
- posix
- readline
- session
- shmop
- simplexml
- soap
- sockets
- sodium
- sqlite3
- tokenizer
- xml
- xmlreader
- xmlwriter
- xsl
- zip
- zlib
- Built from source on both x64 and ARM64 runners
- FPM (FastCGI Process Manager) included
- Binary location:
opt/php/bin/php - Extension directory:
opt/php/lib/php/extensions
- Built using Homebrew (
php@X.Yformula) - Native ARM64 (Apple Silicon) support
- Binaries are code-signed and relocated
- Binary location:
runtime/bin/php - Extension directory:
runtime/lib/php/extensions
- Non-thread-safe (NTS) build
- VS17 for PHP 8.4+, VS16 for earlier versions
- Binary location:
bin/php.exe - Extensions in:
bin/ext/
Releases are created using GitHub Actions workflows:
-
Linux Build (
linux.yml)- Compiles PHP from source with all extensions
- Builds for both x64 and ARM64 architectures
- Creates
.tar.gzpackages
-
macOS Build (
mac.yml)- Uses Homebrew for dependency management
- Bundles all required dylibs into portable package
- ARM64 native compilation
-
Windows Build (
build-windows.yml)- Downloads official PHP binaries
- Configures php.ini with common settings
- Creates
.zippackage
-
Release Controller (
release-controller.yml)- Orchestrates all build workflows
- Generates SHA256 checksums
- Creates GitHub release with artifacts
- Updates
manifest.jsonwith download links
The manifest.json file contains metadata for all available versions:
{
"versions": {
"8.5.1": {
"release_date": "2026-02-10",
"platforms": {
"linux-x64": {
"url": "https://github.com/ShahStudioz/php-builds/releases/download/php-8.5.1/...",
"checksum": "SHA256_HASH",
"bin": "opt/php/bin/php"
},
...
}
}
}
}To release a new PHP version:
- Go to Actions → Release Controller
- Click Run workflow
- Enter PHP version (e.g.,
8.5.2) - Optionally mark as pre-release
- Click Run workflow
The action will:
- Build for all platforms
- Generate checksums
- Create a GitHub release
- Update manifest.json automatically
All builds include optimized php.ini with:
memory_limit = 512M
max_execution_time = 300
upload_max_filesize = 100M
post_max_size = 100M
display_errors = On
opcache.enable = 1
opcache.memory_consumption = 256Modify these values by editing php.ini in the extracted directory.
- Linux: glibc 2.29+ (Ubuntu 20.04+, Debian 10+)
- macOS: 11.0+ (Intel and Apple Silicon)
- Windows: Windows 10+ (x64)
These builds are based on the official PHP source code which is licensed under the PHP License v3.01.
For issues or feature requests, please open a GitHub Issue.
Contributions are welcome! Please feel free to submit pull requests for improvements to the build configurations or documentation.
Repository: ShahStudioz/php-builds