Ranger Easily expand text to an array of integers. Installation composer require eberkund/ranger Usage Pass the get_range a string and expect back an array of integers. get_range('1-3,8'); // [1, 2, 3, 8] Testing Run the tests with, vendor/bin/phpunit