3lvir4/php-range

Range object for easy range manipulation. Partially inspired by Elixir.

v0.2.0 2024-03-01 22:17 UTC

This package is auto-updated.

Last update: 2024-10-03 16:22:32 UTC


README

Latest Stable Version CI Status

3lvir4/php-range

This package provides a Range object for manipulating ranges easily. It is partially inspired by the Elixir Range module/struct. See reference.

Installation

You can add this library as a local, per-project dependency to your project using Composer:

composer require 3lvir4/php-range

If you only need this library during development, then you should add it as a development-time dependency:

composer require --dev 3lvir4/php-range

TODO (decisions needed)

  • Implement IteratorAggregate interface or add a custom Iterator.