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 today

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 21% 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

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

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

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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