Registry / utility / composer-semver

composer-semver

JSON →
library3.4.4phppackagistunverified

Version comparison library that offers utilities, version constraint parsing and validation.

composer require composer/semver
INSTALL
IMPORT
SIG · COMPOSER-SEMVER
C
composer-semver
utilityphpv3.4.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Comparator
use Composer\Semver\Comparator;

Compare two semantic versions.

use Composer\Semver\Comparator; $result = Comparator::greaterThan('1.0.0', '2.0.0'); // false
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.4.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
composer-semver — pip install composer-semver · libregistry