Skip to content

Commit 75c1035

Browse files
aozisikclaude
andauthored
Add Laravel 12 & 13 support (#8)
* Add Laravel 13 support Add ^12.0 and ^13.0 to illuminate/* package constraints and ^12.0 to phpunit version constraint. No source code changes needed — the package uses stable Laravel APIs that remain compatible. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update CI: add Laravel 12/13, PHP 8.4, drop old versions --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 89ccbd4 commit 75c1035

File tree

2 files changed

+15
-22
lines changed

2 files changed

+15
-22
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,47 +14,40 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
# Disable testing on windows for now...
18-
# os: [ubuntu-latest, windows-latest]
1917
os: [ubuntu-latest]
20-
php: [8.1, 8.2, 8.3]
21-
laravel: [8.*, 9.*, 10.*, 11.*]
22-
#stability: [prefer-lowest, prefer-stable]
18+
php: [8.2, 8.3, 8.4]
19+
laravel: [10.*, 11.*, 12.*, 13.*]
2320
stability: [prefer-stable]
2421
exclude:
25-
# Laravel 9 doesn't support < PHP 8
26-
- laravel: 10.*
27-
php: 8.0
28-
- laravel: 11.*
29-
php: 8.0
30-
- laravel: 11.*
22+
# Laravel 12 requires PHP 8.2+
23+
- laravel: 12.*
3124
php: 8.1
25+
# Laravel 13 requires PHP 8.3+
26+
- laravel: 13.*
27+
php: 8.2
3228

3329
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3430

3531
steps:
3632
- name: Checkout code
37-
uses: actions/checkout@v2
33+
uses: actions/checkout@v4
3834

3935
- name: Setup PHP
4036
uses: shivammathur/setup-php@v2
4137
with:
4238
php-version: ${{ matrix.php }}
43-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
39+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo
4440
coverage: none
4541

4642
- name: Setup problem matchers
4743
run: |
4844
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
4945
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
5046
51-
- name: Use legacy PHPUnit configuration for PHP < 8.2
52-
if: ${{ matrix.php }} != '8.2' && ${{ matrix.php }} != '8.3'
53-
run: cp phpunit.old.xml phpunit.xml
54-
5547
- name: Install dependencies
5648
run: |
5749
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
5850
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
51+
5952
- name: Execute tests
60-
run: vendor/bin/phpunit
53+
run: vendor/bin/phpunit

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
"require": {
2626
"php": "^8.1",
2727
"guzzlehttp/guzzle": "^6.3.1|^7.0",
28-
"illuminate/http": "^8.0|^9.0|^10.0|^11.0",
29-
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
30-
"illuminate/cache": "^8.0|^9.0|^10.0|^11.0",
28+
"illuminate/http": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0",
29+
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0",
30+
"illuminate/cache": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0",
3131
"spatie/array-to-xml": "^3.4",
3232
"vyuldashev/xml-to-array": "^1.1"
3333
},
3434
"require-dev": {
3535
"friendsofphp/php-cs-fixer": "^3.1",
36-
"phpunit/phpunit": "^8.0|^9.0|^10.0|^11.0"
36+
"phpunit/phpunit": "^8.0|^9.0|^10.0|^11.0|^12.0"
3737
},
3838
"autoload": {
3939
"psr-4": {

0 commit comments

Comments
 (0)