Skip to content

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.

LaravelPHP
138.3, 8.4, 8.5
128.2
118.2
108.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/carbon spans two majors. Code must work with both.
  • spatie/laravel-data and devizzent/cebe-php-openapi are 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:lNN script to make CI faster.

Check one cell locally ​

Terminal
composer switch:l10
composer test

Restore your dependencies afterward and do not commit an accidental composer.lock change.

The package compatibility skill has the review steps.