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.7.0(3mo ago)052PHPPHP ^8.1

Since Jun 28Pushed 3mo 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 3w ago

READMEChangelog (6)Dependencies (2)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

35

—

LowBetter than 77% of packages

Maintenance78

Regular maintenance activity

Popularity8

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

114d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/45892756?v=4)[Ali Kamel](/maintainers/ali-eltaweel)[@ali-eltaweel](https://github.com/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

[seld/cli-prompt

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

24726.4M22](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

13045.3M6.2k](/packages/illuminate-console)[winbox/args

Windows command-line formatter

20718.9k21](/packages/winbox-args)

PHPackages © 2026

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