Skip to content

Commit

Permalink
feat(php): upgrade PHP support and dependencies (#1068)
Browse files Browse the repository at this point in the history
| 🚥 Resolves #1052  |
| :------------------- |

## 🧰 Changes

- Dropped support for PHP 8.0
- Added support for PHP 8.3.
- Dropped support for Laravel 9
- Expanded CI to test Laravel 11.
- Upgraded PHP dependencies to their latest releases.
- Fixed failing tests

_Laravel 11.x requires a minimum PHP version of 8.2, so there is no CI
action for Laravel 11 with PHP 8.1_
_Some of the updated packages required code changes (there were failing
tests and failed static analysis (+ taint) checks_
  • Loading branch information
AndriiAndreiev authored Sep 18, 2024
1 parent 9781c94 commit 7359d64
Show file tree
Hide file tree
Showing 8 changed files with 3,628 additions and 4,724 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
matrix:
# https://endoflife.date/php
php:
- 8.0 # EOL: November 26th, 2023
- 8.1 # EOL: November 25th, 2024
- 8.2 # EOL: December 8th, 2025
- 8.1 # EOL: December 31th, 2025
- 8.2 # EOL: December 31th, 2026
- 8.3 # EOL: December 31th, 2027
# https://endoflife.date/laravel
laravel:
- 9.* # EOL: February 8th, 2024
- 10.* # EOL: February 4th, 2025

name: build (${{ matrix.php }} w/ Laravel ${{ matrix.laravel }}

Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Run tests
run: make test

build-laravel10:
build-laravel11:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -87,11 +87,11 @@ jobs:
matrix:
# https://endoflife.date/php
php:
- 8.1 # EOL: November 25th, 2024
- 8.2 # EOL: December 8th, 2025
- 8.2 # EOL: December 31th, 2026
- 8.3 # EOL: December 31th, 2027
# https://endoflife.date/laravel
laravel:
- 10.* # EOL: February 4th, 2025
- 11.* # EOL: March 12th, 2026

name: build (${{ matrix.php }} w/ Laravel ${{ matrix.laravel }}

Expand Down
24 changes: 13 additions & 11 deletions packages/php/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,21 @@
"readme"
],
"require": {
"php": "^8.0 | ^8.1 | ^8.2",
"illuminate/http": "^9.0 | ^10.0",
"illuminate/support": "^9.0 | ^10.0",
"ramsey/uuid": "^3.7 | ^4.0",
"composer/composer": "^2.0",
"guzzlehttp/guzzle": "^7.0",
"composer-runtime-api": "^2.2"
"php": "^8.1 | ^8.2 | ^8.3",
"illuminate/http": "^10.0 | ^11.0",
"illuminate/support": "^10.0 | ^11.0",
"ramsey/uuid": "^4.7",
"composer/composer": "^2.7",
"guzzlehttp/guzzle": "^7.9",
"composer-runtime-api": "^2.2",
"phpoption/phpoption": "^1.9",
"vlucas/phpdotenv": "^5.6"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.6",
"psalm/plugin-laravel": "^2.7",
"vimeo/psalm": "5.15.0"
"phpunit/phpunit": "^10.0 | ^11.0",
"squizlabs/php_codesniffer": "^3.10",
"psalm/plugin-laravel": "^2.11.0",
"vimeo/psalm": "5.20.0"
},
"extra": {
"laravel": {
Expand Down
Loading

0 comments on commit 7359d64

Please sign in to comment.