PHPackages                             redbox/cli - 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. redbox/cli

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

redbox/cli
==========

Simple cli argument parser written in and for PHP.

v1.4(5y ago)181[8 issues](https://github.com/johnnymast/redbox-cli/issues)MITPHPPHP &gt;=7.3CI failing

Since Dec 13Pushed 4y ago2 watchersCompare

[ Source](https://github.com/johnnymast/redbox-cli)[ Packagist](https://packagist.org/packages/redbox/cli)[ Docs](https://github.com/johnnymast/redbox-cli)[ RSS](/packages/redbox-cli/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (2)Versions (12)Used By (0)

[![redbox-logo-klein](https://cloud.githubusercontent.com/assets/121194/12361779/5af96e52-bbc0-11e5-91b0-2b7afbc1e5cc.png)](https://cloud.githubusercontent.com/assets/121194/12361779/5af96e52-bbc0-11e5-91b0-2b7afbc1e5cc.png)

[![Build Status](https://camo.githubusercontent.com/a2d95f22e756af3b978cc065f29b238dd81dfc4acfc18bc5be224cd76c7f4fd4/68747470733a2f2f7472617669732d63692e6f72672f6a6f686e6e796d6173742f726564626f782d636c692e737667)](https://travis-ci.org/johnnymast/redbox-cli)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/88de78287980fa70b439115c19dcee34cd5271d12d3b32c15b2f14a3c4ba2cb2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f686e6e796d6173742f726564626f782d636c692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/johnnymast/redbox-cli/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/8eef1dae750fc69be7ac9954276837c8bc813fbfd1b1779524175928017e43d2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f686e6e796d6173742f726564626f782d636c692f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/johnnymast/redbox-cli/?branch=master)[![Twitter URL](https://camo.githubusercontent.com/bd57172cd5d35575e65898eaf1abad4b23224163dd93edc5e9e00e3609dc1929/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f736869656c64732e696f2e7376673f7374796c653d736f6369616c266c6162656c3d436f6e74616374253230617574686f72)](https://twitter.com/intent/tweet?text=@mastjohnny)

redbox-cli
==========

[](#redbox-cli)

This is a command line parser based on [Climate](https://github.com/thephpleague/climate) by [Joe Tannenbaum](https://github.com/joetannenbaum). We share a lot of similarities but i desided to take the getopt route and downgrade the number of lines in the code by 1/4 of the original size.

Howto use the package
---------------------

[](#howto-use-the-package)

Look in the examples folder for basic [examples](examples) of how to use the package.

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

[](#installation)

Using [composer](https://packagist.org/packages/redbox/cli):

```
$ composer require redbox-cli
```

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

[](#requirements)

The following versions of PHP are supported by this version.

- PHP &gt;= 7.3

Unit Testing
------------

[](#unit-testing)

With the new 1.2 release we increased the test ratio from 64% in previous versions to 95% and that is making me proud. Also with the new release i have found a way to unit test the core component of this package (getopt(). While doing this we can make sure your implementation of Redbox-cli will run like a sunshine with any of your projects. If you want a little of what our new tests cover that was not possible before, checkout our [examples](examples) directory for some great examples on how to use this great package.

Author
------

[](#author)

This package is created and maintained by [Johnny Mast](https://github.com/johnnymast) but it was based on [Climate](https://github.com/thephpleague/climate) by [Joe Tannenbaum](https://github.com/joetannenbaum). For feature requests and suggestions you could consider sending me an e-mail or fill out an [issue](https://github.com/johnnymast/redbox-cli/issues).

License
-------

[](#license)

Redbox-cli is released under the MIT public license.

[LICENSE](LICENSE.md)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 99.6% 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 ~367 days

Recently: every ~540 days

Total

7

Last Release

1649d ago

PHP version history (4 changes)1.1PHP &gt;=5.4.0

v1.3PHP &gt;=5.6

v1.4PHP &gt;=7.3

1.5.x-devPHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![johnnymast](https://avatars.githubusercontent.com/u/121194?v=4)](https://github.com/johnnymast "johnnymast (235 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

cliparsercommand line interfaceCLI helperCLI parserDeamon tool

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/redbox-cli/health.svg)

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

###  Alternatives

[nategood/commando

PHP CLI Commando Style

8033.4M39](/packages/nategood-commando)[kzykhys/ciconia

The Markdown parser for PHP5.4

35067.5k14](/packages/kzykhys-ciconia)[phalcon/cli-options-parser

Command line arguments/options parser.

181.1M9](/packages/phalcon-cli-options-parser)[yoeunes/regex-parser

A powerful PCRE regex parser with lexer, AST builder, validation, ReDoS analysis, and syntax highlighting. Zero dependencies, blazing fast, and production-ready.

2980.9k8](/packages/yoeunes-regex-parser)

PHPackages © 2026

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