You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Robin Thoni 6486178dfa updated postgres docker; updated rounecube to 1.3.6 6 년 전
..
src updated postgres docker; updated rounecube to 1.3.6 6 년 전
CHANGELOG.md updated postgres docker; updated rounecube to 1.3.6 6 년 전
LICENSE updated postgres docker; updated rounecube to 1.3.6 6 년 전
README.md updated postgres docker; updated rounecube to 1.3.6 6 년 전
composer.json updated postgres docker; updated rounecube to 1.3.6 6 년 전

README.md

composer/semver

Semver library that offers utilities, version constraint parsing and validation.

Originally written as part of composer/composer, now extracted and made available as a stand-alone library.

Build Status

Installation

Install the latest version with:

$ composer require composer/semver

Requirements

  • PHP 5.3.2 is required but using the latest version of PHP is highly recommended.

Version Comparison

For details on how versions are compared, refer to the Versions article in the documentation section of the getcomposer.org website.

Basic usage

Comparator

The Composer\Semver\Comparator class provides the following methods for comparing versions:

  • greaterThan($v1, $v2)
  • greaterThanOrEqualTo($v1, $v2)
  • lessThan($v1, $v2)
  • lessThanOrEqualTo($v1, $v2)
  • equalTo($v1, $v2)
  • notEqualTo($v1, $v2)

Each function takes two version strings as arguments. For example:

use Composer\Semver\Comparator;

Comparator::greaterThan('1.25.0', '1.24.0'); // 1.25.0 > 1.24.0

Semver

The Composer\Semver\Semver class provides the following methods:

  • satisfies($version, $constraints)
  • satisfiedBy(array $versions, $constraint)
  • sort($versions)
  • rsort($versions)

License

composer/semver is licensed under the MIT License, see the LICENSE file for details.