PHPackages                             michaelbasford/php-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. michaelbasford/php-cli

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

michaelbasford/php-cli
======================

A PHP cli application template using Symfony's Console Component.

1327PHP

Since May 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/michaelbasford/php-cli)[ Packagist](https://packagist.org/packages/michaelbasford/php-cli)[ RSS](/packages/michaelbasford-php-cli/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

php-cli
=======

[](#php-cli)

A skeleton CLI application template using Symfony's [Console](https://github.com/symfony/Console) component.

Create a new application
------------------------

[](#create-a-new-application)

```
$ composer create-project michaelbasford/php-cli:dev new-project-dir/
$ cd new-project-dir/

```

Running your application
------------------------

[](#running-your-application)

```
$ chmod +x bin/application
$ bin/application
php-cli application version 0.0.1

Usage:
 [options] command [arguments]

Options:
 --help (-h)           Display this help message.
 --quiet (-q)          Do not output any message.
 --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.
 --version (-V)        Display this application version.
 --ansi                Force ANSI output.
 --no-ansi             Disable ANSI output.
 --no-interaction (-n) Do not ask any interactive question.

Available commands:
 help              Displays help for a command
 list              Lists commands
example
 example:command   An example command.

```

Example Command

```
$ bin/application example:command
Hello, World!

```

Remove Example
--------------

[](#remove-example)

Remove the following lines from `bin/application`

```
$application->add(
    new Example\ExampleCommand($container)
);

```

Then remove the folder `$ rm -r src/Example`

Included Components
-------------------

[](#included-components)

- [Console](https://github.com/symfony/Console)
- [Pimple](http://pimple.sensiolabs.org)
- [Monolog](https://github.com/Seldaek/monolog)
- [YAML Parser](https://github.com/symfony/Yaml)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbf74d6693f2899b258918bdb481695b88e1b04e12f6289a3fb8c030df490b13?d=identicon)[michaelbasford](/maintainers/michaelbasford)

---

Top Contributors

[![michaelbasford](https://avatars.githubusercontent.com/u/564631?v=4)](https://github.com/michaelbasford "michaelbasford (1 commits)")

### Embed Badge

![Health badge](/badges/michaelbasford-php-cli/health.svg)

```
[![Health](https://phpackages.com/badges/michaelbasford-php-cli/health.svg)](https://phpackages.com/packages/michaelbasford-php-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)
