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(5mo ago)054PHPPHP ^8.1

Since Jun 28Pushed 5mo 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 (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

34

—

LowBetter than 74% of packages

Maintenance72

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

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

[illuminate/console

The Illuminate Console package.

13046.6M7.1k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

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

Windows command-line formatter

20722.5k21](/packages/winbox-args)[mallardduck/laravel-traits

A collection of useful Laravel snippets in the form of easy to use traits.

136.2k2](/packages/mallardduck-laravel-traits)

PHPackages © 2026

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