Thanks to Salamek, this is an adapt to https://github.com/Salamek/php-daterange
Php integer range implementation, usualy used in PgSQL database
<?php
$intRange = new riccardonar\IntRange($startInt, $endInt);
$intRange->getStart(); //$startInt
$intRange->getEnd(); //$endInt