2017 © Pedro Peláez
 

library range

Ruby range syntax parser for PHP.

image

nijens/range

Ruby range syntax parser for PHP.

  • Wednesday, September 21, 2016
  • by niels-nijens
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,152 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

Range

Latest version on Packagist Software License ![Build Status][ico-build] [Coverage Status][link-coverage] SensioLabsInsight ![StyleCI][ico-code-style], (*1)

Ruby range syntax parser for PHP., (*2)

Installation using Composer

Run the following command to add the package to the composer.json of your project:, (*3)

``` bash $ composer require nijens/range, (*4)


## Usage Parsing a range in Ruby syntax: ``` php <?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 <?php, (*5)

use Nijens\Range\Range;, (*6)

$range = new Range(0, 1, false);, (*7)

echo $range; // Output: 0..1 ```, (*8)

The Versions

21/09 2016

dev-master

9999999-dev

Ruby range syntax parser for PHP.

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

range yaml ruby

21/09 2016

v1.0.1

1.0.1.0

Ruby range syntax parser for PHP.

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

range yaml ruby

18/09 2016

v1.0.0

1.0.0.0

Ruby range syntax parser for PHP.

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

range yaml ruby