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 2w 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 35% 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

2687d 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

[illuminate/console

The Illuminate Console package.

13046.0M6.3k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20718.9k21](/packages/winbox-args)[macopedia/magento2-categoryimporter

Category Importer for Magento 2

344.7k](/packages/macopedia-magento2-categoryimporter)

PHPackages © 2026

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