Download PHP Windows binary, debug symbol pack and development pack from
https://downloads.php.net/~windows/releases/archives/ and aggregate them
into a single zip archive suitable for CI publishing.
python download_php_windows.py --version 8.4.22 --nts --x64 --output ./dist
python download_php_windows.py --version 8.5.7 --ts --x64 --debug --output ./distThe output file is named like:
dist/php-8.4.22-nts-Win32-vs17-x64-all.zip
dist/php-8.5.7-Win32-vs17-x64-debug-all.zip # with --debug
| Option | Description |
|---|---|
--version |
Full PHP version, e.g. 8.4.22 |
--x64 / --x86 |
Target architecture |
--ts / --nts |
Thread Safe or Non Thread Safe build |
--debug |
Also download the debug symbol pack (default: no debug pack) |
--output |
Output directory (default: current directory) |
--keep-parts |
Keep the individual downloaded zip files |
--timeout |
HTTP timeout in seconds (default: 120) |