PHPackages                             diversen/minimal-cli-framework - 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. diversen/minimal-cli-framework

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

diversen/minimal-cli-framework
==============================

A very fast and simple CLI framework

v7.1.0(3y ago)5570↓16.7%[1 PRs](https://github.com/diversen/minimal-cli-framework/pulls)2MITPHPCI passing

Since Dec 12Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/diversen/minimal-cli-framework)[ Packagist](https://packagist.org/packages/diversen/minimal-cli-framework)[ RSS](/packages/diversen-minimal-cli-framework/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (53)Used By (2)

minimal-cli-framework
=====================

[](#minimal-cli-framework)

A simple CLI framework with options for multiple sub-commands loaded as classes. In order to implement a command into an exisiting class you will just need to add two methods: `getCommand` and `runCommand` - and then add the object or the class to an instance of the class `MinimalCli`.

Install:
========

[](#install)

```
composer require diversen/minimal-cli-framework

```

Example usage
=============

[](#example-usage)

[src/EchoTest.php](src/EchoTest.php) is a command class containing a single command `echo` and a couple of options.

This command is added to a simple program in [demos/example.php](demos/example.php)

In order to get help on the usage of the command `echo`:

```
php demos/example.php echo --help

```

Put a file in uppercase:

```
php demos/example.php echo --up README.md

```

Or (shorthand):

```
php demos/example.php echo -u README.md

```

Which also will output the file in uppercase

Utils
=====

[](#utils)

Some common CLI Utils.

See [demos/utils\_test.php](demos/utils_test.php)

```
php demos/utils_test.php

```

Colors are supported with

License: MIT

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance57

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity76

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

Recently: every ~11 days

Total

51

Last Release

1099d ago

Major Versions

v2.0.2 → v3.0.32021-09-11

v3.1.0 → v4.0.02022-06-25

v4.1.1 → v5.0.02022-07-01

v5.0.1 → v6.0.02022-07-06

v6.1.4 → v7.0.02023-03-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/23ed91d104f16d10414811ecdafbd5c80a660e658d80ccaadf84f512cfb50629?d=identicon)[diversen](/maintainers/diversen)

---

Top Contributors

[![diversen](https://avatars.githubusercontent.com/u/142675?v=4)](https://github.com/diversen "diversen (91 commits)")

---

Tags

cli-frameworkphpphp-cli-frameworkphp-consolephp-console-framework

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/diversen-minimal-cli-framework/health.svg)

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

###  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)
