Awesome
PHP Builder for Windows
<a href="https://github.com/shivammathur/php-builder-windows" title="PHP Builder Windows"><img alt="Build status" src="https://github.com/shivammathur/php-builder-windows/workflows/Build%20PHP%20master/badge.svg"></a> <a href="https://github.com/shivammathur/php-builder-windows/blob/main/LICENSE" title="license"><img alt="LICENSE" src="https://img.shields.io/badge/license-MIT-428f7e.svg"></a> <a href="https://github.com/shivammathur/php-builder-windows#Builds" title="builds"><img alt="PHP Versions Supported" src="https://img.shields.io/badge/php-%3E%3D%208.0-8892BF.svg"></a> <a href="https://cloudsmith.io/~shivammathur/repos/php-builder-windows" title="mirror"><img alt="cloudsmith mirror" src="https://img.shields.io/badge/builds-cloudsmith-blue?logo=cloudsmith"></a>
Build PHP snapshots for Windows.
Builds
The following configurations are built nightly.
nts-x64
,nts-x64-AVX
,ts-x64
,nts-x86
,ts-x86
.debug-pack
,devel=pack
for each configuration.test pack
for the version.
PHP 8.5.0-dev/master
https://github.com/shivammathur/php-builder-windows/releases/tag/php8.5
PHP 8.4.x-dev
https://github.com/shivammathur/php-builder-windows/releases/tag/php8.4
PHP 8.3.x-dev
https://github.com/shivammathur/php-builder-windows/releases/tag/php8.3
PHP 8.2.x-dev
https://github.com/shivammathur/php-builder-windows/releases/tag/php8.2
PHP 8.1.x-dev
https://github.com/shivammathur/php-builder-windows/releases/tag/php8.1
PHP 8.0.x-dev
https://github.com/shivammathur/php-builder-windows/releases/tag/php8.0
Install
To install a PHP snapshot, open an elevated PowerShell session and run these commands. You can change the configure variables as per your requirements.
# Configure
$php_dir = 'C:\tools\php' # Set this as per your setup
$arch = 'x64' # Set x64 or x86
$ts = $False # Set $False for nts or $True for ts
$version = '8.4' # Set 8.0, 8.1, 8.2, 8.3, 8.4, or 8.5
# Install
New-Item -Path $php_dir -Type Directory -Force
Invoke-WebRequest -UseBasicParsing -Uri https://github.com/shivammathur/php-builder-windows/releases/latest/download/Get-Php.ps1 -OutFile $php_dir\Get-Php.ps1
. $php_dir\Get-Php.ps1 -Architecture $arch -ThreadSafe $ts -Path $php_dir -Version $version
# Test
. $php_dir\php -v
License
The code in this project is licensed under the MIT license. Please see the license file for more information. This project has multiple dependencies. Their licenses can be found in their respective repositories.