Module comparator

Module comparator 

Source
Expand description

Version comparison utilities.

Provides functions to compare two versions using Composer’s semver semantics.

Functions§

compare
Compare two versions using the specified operator.
equal_to
Check if version1 == version2.
greater_than
Check if version1 > version2.
greater_than_or_equal_to
Check if version1 >= version2.
less_than
Check if version1 < version2.
less_than_or_equal_to
Check if version1 <= version2.
not_equal_to
Check if version1 != version2.