Build Command Generator
Select OS
Select Extensions
Select common extensions
Select all
Unselect all
Build Target
Build Options
| Build Environment | |
| PHP version | |
| Verbose log output | |
| Enable ZTS (thread-safe) | |
| Parallel downloads (1-50) | |
| Retry count on failure | |
| Use pre-built dependencies where available (reduce compile time) | |
| Enable UPX compression (reduce binary size) | |
| Keep debug symbols (--no-strip) |
Hardcoded INI options
Result
Download spc binary
curl -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-linux-x86_64 -o spc && chmod +x spc
Auto-check and prepare build environment
./spc doctor --auto-fix
Build command
./spc build:php "" --build-cli --dl-with-php=8.4 --dl-parallel=10 --dl-retry=5 --dl-ignore-cache=php-src --dl-prefer-binary
craft.yml
php-version: 8.4
extensions: ""
sapi:
- cli
download-options:
parallel: 10
retry: 5
ignore-cache: php-src
prefer-binary: true
