PHPackages                             wordcoolframework/cool-cli - 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. wordcoolframework/cool-cli

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

wordcoolframework/cool-cli
==========================

CoolView CLI

1.0.0(1y ago)19MITPHPPHP &gt;=8.0

Since Mar 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wordcoolframework/CoolCLI)[ Packagist](https://packagist.org/packages/wordcoolframework/cool-cli)[ RSS](/packages/wordcoolframework-cool-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

CoolCLI
=======

[](#coolcli)

CoolCLI is a lightweight and extensible CLI tool for executing custom commands in PHP. With CoolCLI, you can easily define your own commands and use them

🚀 Features
----------

[](#-features)

- ✅ **Easy Command Definition**: Create your own command classes and add them to the CLI.
- ✅ **Supports Arguments &amp; Options**: Define various arguments and options for your commands.
- ✅ **Modular Structure**: Add new commands without modifying the core CLI.
- ✅ **Similar to Laravel Artisan**: If you're familiar with Artisan, CoolCLI will feel intuitive.

📥 Installation
--------------

[](#-installation)

To install CoolCLI, run the following command:

```
composer require wordcoolframework/cool-cli
```

📌 Defining a New Command
------------------------

[](#-defining-a-new-command)

To create a new command, add a new class in the `command/` directory. For example, `GreetCommand.php`:

```
namespace Command;

final class GreetCommand {
    public string $commandName = 'greet';
    public string $description = 'Prints a greeting message';

    public static function handle(?string $name = 'World') : void {
        echo "Hello, $name!\n";
    }
}
```

Now, you can execute this command:

```
php cool greet
php cool greet John
```

🛠️ Configuration
----------------

[](#️-configuration)

CLI settings are stored in the config.php file:

```
return [
    "CommandNamespace"  => "\\Command",
    "CommandDirectory"  => "/command",
];
```

🌍 Contributing
--------------

[](#-contributing)

🔹 Contributions and improvements are always welcome! To contribute:

- Fork this repository.
- Create a new branch (`git checkout -b feature-name`).
- Commit your changes (`git commit -m 'Add some feature'`).
- Submit a Pull Request to the main repository.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance44

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

441d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/603fba70031ae282fdb8726285069df42bb5aaa33c44a95edb214e100ab03a05?d=identicon)[wordcoolframework](/maintainers/wordcoolframework)

---

Top Contributors

[![wordcoolframework](https://avatars.githubusercontent.com/u/180386151?v=4)](https://github.com/wordcoolframework "wordcoolframework (12 commits)")

---

Tags

cool cliwordcoolcool artisan

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wordcoolframework-cool-cli/health.svg)

```
[![Health](https://phpackages.com/badges/wordcoolframework-cool-cli/health.svg)](https://phpackages.com/packages/wordcoolframework-cool-cli)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[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)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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