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

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

apex/cli
========

Develop efficient console applications.

2.0.2(2y ago)0341MITPHPPHP &gt;=8.1

Since Jan 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/apexpl/cli)[ Packagist](https://packagist.org/packages/apex/cli)[ Docs](https://apexpl.io)[ RSS](/packages/apex-cli/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (1)

Apex CLI
========

[](#apex-cli)

Quickly and efficiently develop CLI based applications. Features include

- File / directory structure based routing for better organization and single responsibility principle
- Many helper functions to automatically wordwrap all text, get user input, get password, specify new password, get y/n confirmation, render SQL style table, render two column array, and more.
- Support for additional arguments, plus short and long flags with optional values.
- Provides uniform, concise and well structured help screen for all commands.
- Utilizes levenshtein algorithm to automatically detect typos within command names.
- Easily define shortcuts to commands.
- Supports attribute based [dependancy injection](https//github.com/apexpl/container/) providing cleaner and more efficient development.

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

[](#installation)

Install via Composer with:

> `composer require apex/cli`

Table of Contents
-----------------

[](#table-of-contents)

1. [Getting Started](https://github.com/apexpl/cli/blob/master/docs/getting_started.md)
2. [Create CLI Commands](https://github.com/apexpl/cli/blob/master/docs/create.md)
3. [Define Shortcuts](https://github.com/apexpl/cli/blob/master/docs/shortcuts.md)
4. [CLI Help Screen](https://github.com/apexpl/cli/blob/master/docs/help_screen.md)
5. [Cli Function Reference](https://github.com/apexpl/cli/blob/master/docs/functions/index.md)

Follow Apex
-----------

[](#follow-apex)

Loads of good things coming in the near future including new quality open source packages, more advanced articles / tutorials that go over down to earth useful topics, et al. Stay informed by joining the [mailing list](https://apexpl.io/) on our web site, or follow along on Twitter at [@mdizak1](https://twitter.com/mdizak1).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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 ~2 days

Total

3

Last Release

856d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fe486d2ed7db571c0519bb0d52b08b5e953a911936e87331e736a381ef96f29?d=identicon)[apex](/maintainers/apex)

---

Top Contributors

[![apexpl](https://avatars.githubusercontent.com/u/56146521?v=4)](https://github.com/apexpl "apexpl (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)

PHPackages © 2026

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