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

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

onemustcode/cli
===============

A simple to use command line interface framework.

v1.0.6(7y ago)010PHPPHP ^7.2

Since Apr 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/onemustcode/cli)[ Packagist](https://packagist.org/packages/onemustcode/cli)[ RSS](/packages/onemustcode-cli/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

CLI
===

[](#cli)

A small and simple to use command line interface application.

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

[](#installation)

To install the CLI framework just run the following composer command;

```
composer create-project onemustcode/cli my_project --prefer-dist

```

Create new commands
-------------------

[](#create-new-commands)

To add a new command execute the following command;

```
php console create:command my-command MyCommand

```

The first parameter is the name of the command that you will run;

```
php console my-command

```

The second parameter is the class name.

Create providers
----------------

[](#create-providers)

Providers are used to register dependencies (see Service Container) or just to load custom things.

To create a custom provider use the following command;

```
php console create:provider MyCustomProvider

```

When the provider is created you will need to register it in the config.php at the providers section.

Service container
-----------------

[](#service-container)

A service container is available to perform dependency injection. To use this, first create a custom provider and register it at the providers section in the **config.php**;

```
php console create:provider MyCustomProvider

```

In the created provider there is a **load** method. In this load method you can bind your dependencies like so;

```
public function load(): void
{
    // Interface binding
    $myCustom = MyCustom::create();
    $this->app->bind(MyCustomInterface::class, $myCustom);

    // Or initiate a class with custom parameters
    $this->app->bind(MyClass::class, function () {
        return new MyClass([
            'some' => 'custom',
            'params' => [1, 2, 3],
        ]);
    });
}

```

License
-------

[](#license)

The CLI framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

7

Last Release

2579d ago

### Community

Maintainers

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

---

Top Contributors

[![blackvault-bv](https://avatars.githubusercontent.com/u/25415479?v=4)](https://github.com/blackvault-bv "blackvault-bv (8 commits)")

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

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

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/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)
