PHPackages                             pablosanches/goliath - 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. pablosanches/goliath

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

pablosanches/goliath
====================

A simple framework to facilitate the development of CLI applications based on PHP command.

1.0.0(8y ago)113[1 PRs](https://github.com/pablosanches/goliath/pulls)MITPHPPHP &gt;=5.6CI failing

Since Aug 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pablosanches/goliath)[ Packagist](https://packagist.org/packages/pablosanches/goliath)[ RSS](/packages/pablosanches-goliath/feed)WikiDiscussions master Synced 3d ago

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

 [![](https://camo.githubusercontent.com/62fc2234849b7edcd5db3fb658124fb4e0e4a5809cd55819f15aee68d785c29f/687474703a2f2f692e696d6775722e636f6d2f766137453874582e706e67)](https://camo.githubusercontent.com/62fc2234849b7edcd5db3fb658124fb4e0e4a5809cd55819f15aee68d785c29f/687474703a2f2f692e696d6775722e636f6d2f766137453874582e706e67)

[![Codacy Badge](https://camo.githubusercontent.com/5c13c67efc7fc7286a8fc41290be792d57899828385a84949b6865ff7e99bc1d/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6630656630666534323736333465373139613534663662376430623030663933)](https://www.codacy.com/gh/pablosanches/goliath/dashboard?utm_source=github.com&utm_medium=referral&utm_content=pablosanches/goliath&utm_campaign=Badge_Grade)[![Build Status](https://camo.githubusercontent.com/b1e3a91520a6571b5b9a9a39fe8f07240715b2d16374cb1506fc303626e2b192/68747470733a2f2f7472617669732d63692e6f72672f7061626c6f73616e636865732f676f6c696174682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pablosanches/goliath)

A simple framework to facilitate the development of CLI applications based on PHP command.

Features
========

[](#features)

- Routing of command line arguments
- Short and long arguments
- Automagic `--help` creation
- Configuration

Requirements
============

[](#requirements)

PHP &gt;=5.6

Example
=======

[](#example)

```
use Goliath\Cli;

$app = new Goliath\Cli();

$app = new \Goliath\Cli(array(
    'debug' => true,
    'log.destination' => \Goliath\Logger::LOG_STDERR,
    'log.dir' => __DIR__
));

$app->command('hello-world:',
    function($name) {
        echo "Hello $name\n";
    })
    ->setHelp('Hello world example');
```

Installation
============

[](#installation)

You only need to include the depency in the composer.

```
"require": {
    "pablosanches/goliath": "1.0.*"
}
```

And run the composer

```
$ composer install

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

3200d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1846624?v=4)[Pablo Sanches](/maintainers/pablosanches)[@pablosanches](https://github.com/pablosanches)

---

Top Contributors

[![pablosanches](https://avatars.githubusercontent.com/u/1846624?v=4)](https://github.com/pablosanches "pablosanches (22 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pablosanches-goliath/health.svg)

```
[![Health](https://phpackages.com/badges/pablosanches-goliath/health.svg)](https://phpackages.com/packages/pablosanches-goliath)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

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

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/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)
