PHPackages                             ali-eltaweel/cli-app - 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. ali-eltaweel/cli-app

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

ali-eltaweel/cli-app
====================

CLI application skeleton for PHP projects.

0.8.0(2mo ago)052PHPPHP ^8.1

Since Jun 28Pushed 2mo agoCompare

[ Source](https://github.com/ali-eltaweel/cli-app)[ Packagist](https://packagist.org/packages/ali-eltaweel/cli-app)[ RSS](/packages/ali-eltaweel-cli-app/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (10)Used By (0)

CLI APP
=======

[](#cli-app)

**CLI application skeleton for PHP projects**

- [CLI APP](#cli-app)
    - [Installation](#installation)
    - [Usage](#usage)
        - [Defining Application](#defining-application)
        - [Running Application](#running-application)
            - [Run as Daemon](#run-as-daemon)

---

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

[](#installation)

Install *cli-app* via Composer:

```
composer require ali-eltaweel/cli-app
```

Usage
-----

[](#usage)

### Defining Application

[](#defining-application)

```
use App\CLI\CliApplication;
use CommandParser\Specs\Command;

class MyApp extends CliApplication {

  protected static function getCommandSpecs(): Command {

    return new Command('my-app');
  }

  protected function setup(): void {

    // this code runs once at the start
  }

  protected function loop(): void {

    // this code runs repeatedly
  }
}
```

### Running Application

[](#running-application)

```
MyApp::main(...$argv);
```

#### Run as Daemon

[](#run-as-daemon)

```
class MyApp extends CliApplication {

  protected function setup(): void {

    $this->daemonize();
  }
}
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance86

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

Total

9

Last Release

68d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7564e10ba11b25d8700726a92f669e38be2ff9191e8f6ccdfafc36678ffab2b8?d=identicon)[ali-eltaweel](/maintainers/ali-eltaweel)

---

Top Contributors

[![ali-eltaweel](https://avatars.githubusercontent.com/u/45892756?v=4)](https://github.com/ali-eltaweel "ali-eltaweel (9 commits)")

### Embed Badge

![Health badge](/badges/ali-eltaweel-cli-app/health.svg)

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M319](/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)
