PHPackages                             nijens/range - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. nijens/range

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

nijens/range
============

Ruby range syntax parser for PHP.

v1.0.1(9y ago)011.3k11MITPHPPHP ^5.5 || ^7.0

Since Sep 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/nijens/range)[ Packagist](https://packagist.org/packages/nijens/range)[ RSS](/packages/nijens-range/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (1)

Range
=====

[](#range)

[![Latest version on Packagist](https://camo.githubusercontent.com/84b4953aef6579db421315db02fe81383f9bf88b48a6782e4ce821a906feb843/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e696a656e732f72616e67652e737667)](https://packagist.org/packages/nijens/range)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/5a881084b13418b80787d92c20946d36b3a2e39dd719ab7ac56dca5dfedef3e7/68747470733a2f2f7472617669732d63692e6f72672f6e696a656e732f72616e67652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nijens/range)[![Coverage Status](https://camo.githubusercontent.com/a79a591bb555b77eb51b9a1b6a097bf42e3b102d35557537070e45d0be056eec/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6e696a656e732f72616e67652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/nijens/range?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/cf0bc1223e342763ae9d7ab360455d11083a3894617a4fcb1afb895d73e94201/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f39626630613135642d656362622d346531662d623730652d3436666137396164653732632e737667)](https://insight.sensiolabs.com/projects/9bf0a15d-ecbb-4e1f-b70e-46fa79ade72c)[![StyleCI](https://camo.githubusercontent.com/ea0caa6a2381c20007b025a7e574564de878466873d7f4c97d21608c016cd3f7/68747470733a2f2f7374796c6563692e696f2f7265706f732f36383434343835302f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/68444850)

Ruby range syntax parser for PHP.

Installation using Composer
---------------------------

[](#installation-using-composer)

Run the following command to add the package to the composer.json of your project:

```
$ composer require nijens/range
```

Usage
-----

[](#usage)

Parsing a range in Ruby syntax:

```
