PHPackages                             adamgaskins/gumwrapper - 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. adamgaskins/gumwrapper

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

adamgaskins/gumwrapper
======================

A php wrapper for Gum: a tool for glamorous shell scripts 🎀

v0.1.2(3y ago)06[1 PRs](https://github.com/AdamGaskins/gumwrapper/pulls)MITPHPPHP ^7.4|^8.0

Since Aug 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/AdamGaskins/gumwrapper)[ Packagist](https://packagist.org/packages/adamgaskins/gumwrapper)[ Docs](https://github.com/adamgaskins/gumwrapper)[ RSS](/packages/adamgaskins-gumwrapper/feed)WikiDiscussions main Synced 1mo ago

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

GumWrapper
==========

[](#gumwrapper)

A lightweight wrapper around [Gum](https://github.com/charmbracelet/gum): A tool for glamorous shell scripts. See the [Gum documentation](https://github.com/charmbracelet/gum) for more documentation on the underlying features.

Getting Started
===============

[](#getting-started)

Install with composer:

```
composer install adamgaskins/gumwrapper
```

Usage:

```
$gum = new Gum();
$gum->choose([ 'apple', 'banana', 'pear' ])
```

The following platforms are currently supported. Please make a PR to `BinManager.php` to add support for [other platforms Gum supports](https://github.com/charmbracelet/gum/releases/tag/v0.4.0)!

- Apple M1
- Apple Intel
- Windows i386
- Windows x86\_64

Reference
=========

[](#reference)

### [Choose](https://github.com/charmbracelet/gum#choose)

[](#choose)

```
$result = $gum->choose([ 'apple', 'banana', 'pear', 'orange' ]);
// example: "apple"
```

```
$gum->choose(
    $options = [ 'apple', 'banana', 'pear', 'orange' ],
    $limit = 2, // enable multiselect
    $height = 10 // scroll if more than 10 items
);
```

### [Confirm](https://github.com/charmbracelet/gum#confirm)

[](#confirm)

```
$result = $gum->confirm();
// example: true
```

```
$gum->confirm(
    $prompt = 'Are you sure?',
    $affirmativeText = 'Yeah!',
    $negativeText = 'Actually, no',
    $default = false // default to "no" option
);
```

### [Input](https://github.com/charmbracelet/gum#input)

[](#input)

```
$result = $gum->input('What is your name?');
// example: "Adam"
```

```
$gum->input(
    $placeholder = 'Password',
    $prompt = '> ',
    $initialValue = null,
    $charLimit = 400,
    $width = 10,
    $password = true
);
```

### [Spin](https://github.com/charmbracelet/gum#spin)

[](#spin)

Note: Do not write any output or call any other Gum commands before `->terminate()`-ing the spinner, or errors may occur.

```
$spinner = $gum->spin();
sleep(10); // do some long task
$spinner->terminate();
```

```
$gum->spin(
    $title = 'Downloading files...',
    $spinner = 'pulse'
);
```

### Todo:

[](#todo)

- Write
- Filter

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Every ~0 days

Total

3

Last Release

1365d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63884672ecd65deace8ca6f9247e039c8d1149c46d1b81e840d201313e032252?d=identicon)[AdamGaskins](/maintainers/AdamGaskins)

---

Top Contributors

[![AdamGaskins](https://avatars.githubusercontent.com/u/1180782?v=4)](https://github.com/AdamGaskins "AdamGaskins (22 commits)")

---

Tags

adamgaskinsgumgumwrapper

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/adamgaskins-gumwrapper/health.svg)

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M318](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M18](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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