This is an example PHP library using a GitHub Actions workflow to check whether the code is compatible with a range of PHP and dependency versions.
See the Actions tab for example workflow runs.
For a detailed explanation: A GitHub workflow to check the compatibility of your PHP package with a range of dependency versions.