jrdev / drange
Discontinuous ranges
v1.0.1
2017-07-03 01:23 UTC
Requires
- php: >=5.4
Requires (Dev)
- codeception/codeception: ^2.3
- codeception/specify: ^0.4.6
- pdepend/pdepend: ^2.5
- phpmd/phpmd: ^2.6
- squizlabs/php_codesniffer: ^3.0
This package is not auto-updated.
Last update: 2025-01-19 05:06:03 UTC
README
Discontinuous ranges.
$drange = new DRange(1, 5); // [ 1-5 ]
$drange->add(6); // [ 1-6 ]
$drange->add(8); // [ 1-6, 8 ]
$drange->add(7); // [ 1-8 ]
$drange->subtract(1, 3); // [ 4-8 ]
Documentation
Soon...
Installation
Install the latest version with:
$ composer require jrdev/drange
License
Licensed under the MIT licence.