PHPackages                             eberkund/ranger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. eberkund/ranger

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

eberkund/ranger
===============

Easily expand text to an array of integers

v0.1.0(8y ago)014MITPHPPHP &gt;=7.0

Since Apr 8Pushed 7y agoCompare

[ Source](https://github.com/eberkund/ranger)[ Packagist](https://packagist.org/packages/eberkund/ranger)[ RSS](/packages/eberkund-ranger/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/5cebc29d6858347d42716bfc0b2c23ac6254e72e767f0cfc8f70a2d5f1ecec5a/68747470733a2f2f706f7365722e707567782e6f72672f656265726b756e642f72616e6765722f762f737461626c65)](https://packagist.org/packages/eberkund/ranger)[![Total Downloads](https://camo.githubusercontent.com/823d740ab5e5bfad8dabcf7d1df5e627891b9f7124b12940a91b928017c32682/68747470733a2f2f706f7365722e707567782e6f72672f656265726b756e642f72616e6765722f646f776e6c6f616473)](https://packagist.org/packages/eberkund/ranger)[![License](https://camo.githubusercontent.com/fe45f7b41a4a43d99b18b6d6623069899756b085ad5c267eb458753b32df6c5d/68747470733a2f2f706f7365722e707567782e6f72672f656265726b756e642f72616e6765722f6c6963656e7365)](https://packagist.org/packages/eberkund/ranger)[![Build Status](https://camo.githubusercontent.com/389a4ee3690d7b2f855d030653e3c2c6befe53da06ed9a7851add8fac852267e/68747470733a2f2f7472617669732d63692e6f72672f656265726b756e642f72616e6765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/eberkund/ranger)[![Coverage](https://camo.githubusercontent.com/a1b0abe8a46427299fc558ce4388aa28716e663849fd167118ecf2ef9af22a51/68747470733a2f2f636f6465636f762e696f2f67682f656265726b756e642f72616e6765722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/eberkund/ranger)

Ranger
======

[](#ranger)

Easily expand text to an array of integers.

Installation
------------

[](#installation)

```
composer require eberkund/ranger

```

Usage
-----

[](#usage)

Pass the `get_range` a string and expect back an array of integers.

```
get_range('1-3,8');

// [1, 2, 3, 8]

```

Testing
-------

[](#testing)

Run the tests with,

```
vendor/bin/phpunit

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3004d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4555959?v=4)[Erik Berkun-Drevnig](/maintainers/eberkund)[@eberkund](https://github.com/eberkund)

---

Top Contributors

[![eberkund](https://avatars.githubusercontent.com/u/4555959?v=4)](https://github.com/eberkund "eberkund (24 commits)")

---

Tags

expansioninputphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eberkund-ranger/health.svg)

```
[![Health](https://phpackages.com/badges/eberkund-ranger/health.svg)](https://phpackages.com/packages/eberkund-ranger)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M267](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M991](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M363](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
