PHPackages                             hunomina/cli-oop-php - 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. hunomina/cli-oop-php

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

hunomina/cli-oop-php
====================

Implementation of CLI classes for PHP7.1 or higher

1.1.0(7y ago)06proprietaryPHPPHP ^7.1CI failing

Since Oct 19Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

CLI OOP PHP
===========

[](#cli-oop-php)

[![Build Status](https://camo.githubusercontent.com/55b2fb6de735c2c6d19924aa1bb7c6f777dc36f6711470f6b5983f7e97d4240b/68747470733a2f2f7472617669732d63692e636f6d2f68756e6f6d696e612f636c692d6f6f702d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/hunomina/cli-oop-php)

Description : Implementation of CLI classes for PHP7.1 or higher.

This class can be used in a php file called by a CLI with input redirection.

Console
-------

[](#console)

The [hunomina\\Console\\Console](https://github.com/hunomina/cli-oop-php/blob/master/src/Console/Console.php) class allow you to create script that you can use for background tasks, cron tasks...

To instantiate a Console, you have to pass a folder path to the constructor. This path is where your commands locate.

The folder is then sort out and only files will be parsed.

The Console parses all the files and store all class implementing the [hunomina\\Command\\CommandInterface](https://github.com/hunomina/cli-oop-php/blob/master/src/Command/CommandInterface.php) in the *$\_commands* attribute

The *execute($params)* method allow you to execute commands.

It the parameters match a command, it will execute it.

If it does not, it will return a failure message.

If *$params* is null, an empty array or equals to "\['help'\]", the console will print all the available commands.

The console will also print a message based on the command success.

CommandInterface
----------------

[](#commandinterface)

The [hunomina\\Command\\CommandInterface](https://github.com/hunomina/cli-oop-php/blob/master/src/Command/CommandInterface.php) has 3 methods :

- *array getCommand()* : Return a list of string composing the command
- *string getDescription()* : Return the string description of the command (used by the help command)
- *bool execute()* : Logic of the command. Return *true* on success and *false* on failure

Examples
--------

[](#examples)

See [/tests](https://github.com/hunomina/cli-oop-php/tree/master/tests) for examples

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

2640d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37975d851f2946e4fab563ba4558e2b81908d933a4a550da65d1ac8a15a207e0?d=identicon)[hunomina972](/maintainers/hunomina972)

---

Top Contributors

[![hunomina](https://avatars.githubusercontent.com/u/16224681?v=4)](https://github.com/hunomina "hunomina (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hunomina-cli-oop-php/health.svg)

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

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