SupportedVersions
in package
The range of PHP versions this SDK is built and tested against.
Composer already enforces the lower bound at install time via the php
constraint in the SDK's composer.json, but that constraint is awkward to
read back at run time — it lives in the installed package's manifest under
vendor/, not in any API — and it says nothing at all about the upper end.
These constants are the readable half, so a deployment preflight or a
startup assertion can report the range without hardcoding numbers that go
stale.
The SDK is built against self::MIN_PHP and additionally tested against self::NEWEST_TESTED_PHP; every release between the two is supported and sits between two green CI legs.
tests/VersionPolicyTest.php asserts both values against composer.json
and the CI matrix respectively, so neither can drift from what is actually
published and executed.
Tags
Table of Contents
Constants
- MIN_PHP : mixed = '8.2'
- The minimum PHP version, as `major.minor`.
- NEWEST_TESTED_PHP : mixed = '8.5'
- The newest PHP version the SDK has a green build against, as `major.minor`.
Constants
MIN_PHP
The minimum PHP version, as `major.minor`.
public
mixed
MIN_PHP
= '8.2'
Mirrors the php constraint in composer.json. This is the version the
SDK is compiled and tested against, and the one Composer refuses to
install below.
NEWEST_TESTED_PHP
The newest PHP version the SDK has a green build against, as `major.minor`.
public
mixed
NEWEST_TESTED_PHP
= '8.5'
Mirrors the upper leg of the CI matrix. A runtime newer than this is expected to work — the SDK uses no version-gated syntax beyond the floor — but is not yet proven by a build.