\Composer\SemverSemver

Summary

Methods
Properties
Constants
satisfies()
satisfiedBy()
sort()
rsort()
No public properties found
SORT_ASC
SORT_DESC
No protected methods found
No protected properties found
N/A
usort()
$versionParser
N/A

Constants

SORT_ASC

SORT_ASC = 1

SORT_DESC

SORT_DESC = -1

Properties

Methods

satisfies()

satisfies(string  $version, string  $constraints) : boolean

Determine if given version satisfies given constraints.

Parameters

string $version
string $constraints

Returns

boolean

satisfiedBy()

satisfiedBy(array  $versions, string  $constraints) : array

Return all versions that satisfy given constraints.

Parameters

array $versions
string $constraints

Returns

array

sort()

sort(array  $versions) : array

Sort given array of versions.

Parameters

array $versions

Returns

array

rsort()

rsort(array  $versions) : array

Sort given array of versions in reverse.

Parameters

array $versions

Returns

array

usort()

usort(array  $versions, integer  $direction) : array

Parameters

array $versions
integer $direction

Returns

array