icecave/semver
最新稳定版本:3.0.3
Composer 安装命令:
composer require icecave/semver
包简介
A semantic version parser and comparison library.
README 文档
README
This project has been deprecated by the authors. Use composer/semver instead.
SemVer is a PHP library for parsing and comparing version numbers according to the Semantic Versioning standard. The current version behaves according to version 2.0.0 of the specification.
- Install via Composer package icecave/semver
- Read the API documentation
Example
use Icecave\SemVer\Version; use Icecave\SemVer\Comparator; // Create versions from strings ... $version1 = Version::parse('1.2.0-rc.1+build.meta.data'); $version2 = Version::parse('1.3.0'); // Compare the versions ... $comparator = new Comparator; assert($comparator->compare($version1, $version2) < 0);
统计信息
- 总下载量: 151.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 2
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-08-22