PHPackages                             adamhebby/php-scrollable-selection - 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. adamhebby/php-scrollable-selection

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

adamhebby/php-scrollable-selection
==================================

PHP Scrollable user selection list

v1.0.3(7y ago)126Apache-2.0PHP

Since Oct 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/AdamHebby/php-scrollable-selection)[ Packagist](https://packagist.org/packages/adamhebby/php-scrollable-selection)[ RSS](/packages/adamhebby-php-scrollable-selection/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (0)

PHP Scrollable Selection
========================

[](#php-scrollable-selection)

[![Latest Stable Version](https://camo.githubusercontent.com/178a3bd592cdbe797ab2b2890b3ff3403709014dc78afcae7e53ae585dda6b8c/68747470733a2f2f706f7365722e707567782e6f72672f6164616d68656262792f7068702d7363726f6c6c61626c652d73656c656374696f6e2f762f737461626c65)](https://packagist.org/packages/adamhebby/php-scrollable-selection) [![Total Downloads](https://camo.githubusercontent.com/4d4d98a65ba750a7b6a40544d1429710395383140174e1af2af0b81fb50713cf/68747470733a2f2f706f7365722e707567782e6f72672f6164616d68656262792f7068702d7363726f6c6c61626c652d73656c656374696f6e2f646f776e6c6f616473)](https://packagist.org/packages/adamhebby/php-scrollable-selection) [![Latest Unstable Version](https://camo.githubusercontent.com/e32d4c84343e9d6fc1bfaa367d1117a7883c93227ff0b3cf10554797257b83f4/68747470733a2f2f706f7365722e707567782e6f72672f6164616d68656262792f7068702d7363726f6c6c61626c652d73656c656374696f6e2f762f756e737461626c65)](https://packagist.org/packages/adamhebby/php-scrollable-selection) [![License](https://camo.githubusercontent.com/9d4c02fa5a10131363cfd4aa8ae363a4886a73063c60dc989ec27a4ffad7642c/68747470733a2f2f706f7365722e707567782e6f72672f6164616d68656262792f7068702d7363726f6c6c61626c652d73656c656374696f6e2f6c6963656e7365)](https://packagist.org/packages/adamhebby/php-scrollable-selection)

Allows a user to select an option from a scrollable list, returns key selected from original array input

### Loop Mode

[](#loop-mode)

[![](https://camo.githubusercontent.com/181783608afc192506b5d24f1baf8a1a5afd7f1a4c75132761e32d8908ae1792/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f356757474a7965304255484334376a356a552f67697068792e676966)](https://camo.githubusercontent.com/181783608afc192506b5d24f1baf8a1a5afd7f1a4c75132761e32d8908ae1792/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f356757474a7965304255484334376a356a552f67697068792e676966)

### Single List Mode

[](#single-list-mode)

[![](https://camo.githubusercontent.com/95d65e62be23d72e956b87854452b8e96e7edcccd1c3d783a7565daf4432d56a/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f55374d797755416b6950427a73775344384e2f67697068792e676966)](https://camo.githubusercontent.com/95d65e62be23d72e956b87854452b8e96e7edcccd1c3d783a7565daf4432d56a/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f55374d797755416b6950427a73775344384e2f67697068792e676966)

### Custom Colors &amp; Cursor Text

[](#custom-colors--cursor-text)

[![](https://camo.githubusercontent.com/48ca3dbffa99818906330b6b4e74455414f25582b701f31a7c60d1f91045adae/68747470733a2f2f696d6167652e6962622e636f2f6254436774412f7068702d7363726f6c6c61626c652d73656c656374696f6e2d636f6c6f72732e706e67)](https://camo.githubusercontent.com/48ca3dbffa99818906330b6b4e74455414f25582b701f31a7c60d1f91045adae/68747470733a2f2f696d6167652e6962622e636f2f6254436774412f7068702d7363726f6c6c61626c652d73656c656374696f6e2d636f6c6f72732e706e67)

#### Available Colors

[](#available-colors)

[![](https://camo.githubusercontent.com/9123a501c82f3848d347ebfdf97dad4119399624b95be38dd234cf01bc72341b/68747470733a2f2f696d6167652e6962622e636f2f6d41615566712f7068702d7363726f6c6c61626c652d73656c656374696f6e2d617661696c61626c652d636f6c6f72732e706e67)](https://camo.githubusercontent.com/9123a501c82f3848d347ebfdf97dad4119399624b95be38dd234cf01bc72341b/68747470733a2f2f696d6167652e6962622e636f2f6d41615566712f7068702d7363726f6c6c61626c652d73656c656374696f6e2d617661696c61626c652d636f6c6f72732e706e67)

### Installation

[](#installation)

`composer require adamhebby/php-scrollable-selection`

### Example

[](#example)

```
require __DIR__ . '/vendor/autoload.php';
use AdamHebby\ScrollableSelection;

$list = array();

for ($i=1; $i < 50; $i++) {
    $list[] = "$i " . str_repeat('-', 20);
}

$ScrollableSelection = new ScrollableSelection(
    [
        'list'     => $list,
        'maxItems' => 10,
        'loops'    => true,
        'startKey' => 0,
        'cursor'   => '>',
        'colors'   => [
            'active'   => 'white',
            'inactive' => 'dark_gray'
        ]
    ]
);

$key = $ScrollableSelection->displayList();

if (!isset($list[$key])) {
    echo "User quit selection \n\n";
} else {
    echo "\nUser selected {$list[$key]} \n\n";
}
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~0 days

Total

4

Last Release

2801d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1fa8e294b36b01963f946f78fb11720f7c76a8e846199d52fe99d847a442f1d?d=identicon)[AdamHebby](/maintainers/AdamHebby)

---

Top Contributors

[![AdamHebby](https://avatars.githubusercontent.com/u/18214951?v=4)](https://github.com/AdamHebby "AdamHebby (13 commits)")

### Embed Badge

![Health badge](/badges/adamhebby-php-scrollable-selection/health.svg)

```
[![Health](https://phpackages.com/badges/adamhebby-php-scrollable-selection/health.svg)](https://phpackages.com/packages/adamhebby-php-scrollable-selection)
```

PHPackages © 2026

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