nijens/range
Composer 安装命令:
composer require nijens/range
包简介
Ruby range syntax parser for PHP.
README 文档
README
Ruby range syntax parser for PHP.
Installation using Composer
Run the following command to add the package to the composer.json of your project:
$ composer require nijens/range
Usage
Parsing a range in Ruby syntax:
<?php use Nijens\Range\Range; $range = Range::parse('0..1'); echo $range->getFrom(); // Output: 0 echo $range->getTo(); // Output: 1
Converting a Range instance to Ruby range syntax:
<?php use Nijens\Range\Range; $range = new Range(0, 1, false); echo $range; // Output: 0..1
统计信息
- 总下载量: 11.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-17