Skip to content

Commit

Permalink
Add php 8.2 and 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cretueusebiu committed Dec 21, 2023
1 parent e24aa80 commit e10e89d
Show file tree
Hide file tree
Showing 7 changed files with 3,973 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.4, 8.0, 8.1]
php: [7.4, 8.0, 8.1, 8.2, 8.3]

name: PHP ${{ matrix.php }}

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.5.2 - Unreleased

- Added support for PHP 8.2 and 8.3

## 2.5.1 - 2022-08-25

- Fixed Xdebug download error [#201](https://github.com/cretueusebiu/valet-windows/pull/201)
Expand Down
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,11 @@ Before installation, make sure that no other programs such as Apache or Nginx ar
- If you don't have PHP installed, open PowerShell (3.0+) as Administrator and run:

```bash
# PHP 8.1
Set-ExecutionPolicy RemoteSigned -Scope Process; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri "https://github.com/cretueusebiu/valet-windows/raw/master/bin/php.ps1" -OutFile $env:temp\php.ps1; .$env:temp\php.ps1 "8.1"

# PHP 8.0
Set-ExecutionPolicy RemoteSigned -Scope Process; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri "https://github.com/cretueusebiu/valet-windows/raw/master/bin/php.ps1" -OutFile $env:temp\php.ps1; .$env:temp\php.ps1 "8.0"

# PHP 7.4
Set-ExecutionPolicy RemoteSigned -Scope Process; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri "https://github.com/cretueusebiu/valet-windows/raw/master/bin/php.ps1" -OutFile $env:temp\php.ps1; .$env:temp\php.ps1 "7.4"
Set-ExecutionPolicy RemoteSigned -Scope Process; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri "https://github.com/cretueusebiu/valet-windows/raw/master/bin/php.ps1" -OutFile $env:temp\php.ps1; .$env:temp\php.ps1 "8.3"
```

(You can replace `8.3` with the PHP version you want to install: `7.4`, `8.0`, `8.1`, `8.2`, `8.3`)

> This script will download and install PHP for you and add it to your environment path variable. PowerShell is only required for this step.
- If you don't have Composer installed, make sure to [install](https://getcomposer.org/Composer-Setup.exe) it.
Expand Down
2 changes: 1 addition & 1 deletion bin/php.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (Get-Command "php" -errorAction SilentlyContinue) {
exit
}

if ('7.2','7.3','7.4','8.0','8.1' -notcontains $phpVersion) {
if ('7.2','7.3','7.4','8.0','8.1','8.2','8.3' -notcontains $phpVersion) {
throw "Invalid PHP version [$phpVersion]."
}

Expand Down
Loading

0 comments on commit e10e89d

Please sign in to comment.