PHPackages                             sunkan/console-select - 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. [CLI &amp; Console](/categories/cli)
4. /
5. sunkan/console-select

ActiveLibrary[CLI &amp; Console](/categories/cli)

sunkan/console-select
=====================

A fancy selection interface for symfony's console component.

4.0.0(1y ago)01.3k↓80%MITPHPPHP ^8.1CI passing

Since May 21Pushed 1y agoCompare

[ Source](https://github.com/sunkan/console-select)[ Packagist](https://packagist.org/packages/sunkan/console-select)[ RSS](/packages/sunkan-console-select/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (5)Versions (9)Used By (0)

Console-Selection
=================

[](#console-selection)

A fancy selection interface for symfony's console component.

[![Sample](docs/sample.gif)](docs/sample.gif)

Requirements
------------

[](#requirements)

This project is intended to be run with one of these frameworks:

- symfony/console 5.0+

Install
-------

[](#install)

```
composer require sunkan/console-select
```

### On Symfony

[](#on-symfony)

Add the `EddIriarte\Console\Traits\SelectableInputs` trait to your command class

```
# importing : \EddIriarte\Console\Helpers\SelectionHelper
# passing the input and output interfaces
$this->getHelperSet()->set(
  new SelectionHelper($this->input, $this->output)
);
```

Checkboxes
----------

[](#checkboxes)

Useful when you need several answers from the user.

```
$selected = $this->select(
  'Select characters that appeared in "Star Wars,  Episode I - The phantom menace"',
  [
    'Ahsoka Tano',
    'Anakin Skywalker',
    'Boba Fett',
    'Chewbacca',
    'Count Dooku',
    'Darth Maul',
    'Darth Vader',
    'Finn',
    'Han Solo',
    'Jabba the Hutt',
    'Jar Jar Binks',
    'Kylo Ren',
    'Lando Calrissian',
    'Luke Skywalker',
    'Mace Windu',
    'Obi-Wan Kenobi',
    'Padmé Amidala',
    'Sheev Palpatine',
    'Poe Dameron',
    'Princess Leia Organa',
    'Qui-Gon Jinn',
    'Rey',
    'Watto',
    'Yoda',
  ]
);
```

Radio
-----

[](#radio)

Useful when you need the user to pick only one anwer from the list.

```
$selected = $this->select(
  'What is the name of the ancient Jedi master that lives at the swamps of Dagobah',
  [
    'Ahsoka Tano',
    'Anakin Skywalker',
    'Boba Fett',
    'Chewbacca',
    'Count Dooku',
    'Darth Maul',
    'Darth Vader',
    'Finn',
    'Han Solo',
    'Jabba the Hutt',
    'Jar Jar Binks',
    'Kylo Ren',
    'Lando Calrissian',
    'Luke Skywalker',
    'Mace Windu',
    'Obi-Wan Kenobi',
    'Padmé Amidala',
    'Sheev Palpatine',
    'Poe Dameron',
    'Princess Leia Organa',
    'Qui-Gon Jinn',
    'Rey',
    'Watto',
    'Yoda',
  ],
  false // third argument(bool) that allows multiple selections (default: true)
);
```

Still to do
-----------

[](#still-to-do)

- Handle user-interruptions, such as `Ctrl+C`

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance47

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 51% 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 ~512 days

Recently: every ~640 days

Total

6

Last Release

393d ago

Major Versions

1.0.0 → 2.0.02018-07-17

2.0.2 → 4.0.02025-05-26

PHP version history (2 changes)1.0.0-rc1PHP &gt;=7.1

4.0.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![sunkan](https://avatars.githubusercontent.com/u/568492?v=4)](https://github.com/sunkan "sunkan (26 commits)")[![eddiriarte](https://avatars.githubusercontent.com/u/6428870?v=4)](https://github.com/eddiriarte "eddiriarte (17 commits)")[![tomsihap](https://avatars.githubusercontent.com/u/6191094?v=4)](https://github.com/tomsihap "tomsihap (8 commits)")

---

Tags

cliconsolesymfonylibraryselectcheckboxradio

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sunkan-console-select/health.svg)

```
[![Health](https://phpackages.com/badges/sunkan-console-select/health.svg)](https://phpackages.com/packages/sunkan-console-select)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k348.7M10.4k](/packages/nunomaduro-collision)[eddiriarte/console-select

A fancy selection interface for symfony's console component.

127.2k2](/packages/eddiriarte-console-select)[fidry/console

Library to create CLI applications

192.2M4](/packages/fidry-console)

PHPackages © 2026

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