PHP and Laravel support
The package supports PHP 8.2 and newer, and Laravel 10 to 13. The source of truth is the matrix in .github/workflows/php-tests.yml and the constraints in composer.json.
The matrix
CI runs these pairs.
| Laravel | PHP |
|---|---|
| 13 | 8.3, 8.4, 8.5 |
| 12 | 8.2 |
| 11 | 8.2 |
| 10 | 8.2 |
PHP 8.5 with Laravel 13 also uploads coverage. Tests run on every pull request that changes PHP files, composer.json, the lock file or the workflow. They also run every Sunday.
Rules
- Write code that works on the oldest and the newest supported version. Do not use syntax or an API that PHP 8.2 or Laravel 10 lacks.
nesbot/carbonspans two majors. Code must work with both.spatie/laravel-dataanddevizzent/cebe-php-openapiare optional. Code that uses them must degrade when they are missing.- A dependency change must still allow every Laravel major in the matrix.
- Do not raise a constraint to avoid a compatibility branch.
- Do not remove a matrix cell or a
switch:lNNscript to make CI faster.
Check one cell locally
Terminal
composer switch:l10
composer testRestore your dependencies afterward and do not commit an accidental composer.lock change.
The package compatibility skill has the review steps.