A PHP implementation of the Interval Tree data structure Based on: https://github.com/tylerkahn/intervaltree-python https://github.com/misshie/interval-tree Your range objects should implement IntervalTree\RangeInterface. There are numeric and DateTime-based implementations included.