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(2w ago)052PHPPHP ^8.1

Since Jun 28Pushed 2w 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 today

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

40

—

FairBetter than 88% of packages

Maintenance96

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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

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

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k324.1M7.0k](/packages/nunomaduro-collision)[wp-cli/wp-cli

WP-CLI framework

5.1k16.6M256](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22568.5M16](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26946.8M4](/packages/chi-teck-drupal-code-generator)[consolidation/config

Provide configuration services for a commandline tool.

16959.8M14](/packages/consolidation-config)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.5M14](/packages/seld-cli-prompt)

PHPackages © 2026

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