PHPackages                             simpl/console - 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. simpl/console

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

simpl/console
=============

The Simpl way to get up and running with a clean console project.

010PHP

Since Oct 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/simpl-php/console)[ Packagist](https://packagist.org/packages/simpl/console)[ RSS](/packages/simpl-console/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simpl/Console
=============

[](#simplconsole)

> Boilerplate for creating a new console project using `symfony/console`.

Installation
------------

[](#installation)

```
composer create-project simpl/console [your-project-name] --stability=dev

```

Basic Usage
-----------

[](#basic-usage)

### Command Help

[](#command-help)

```
php console help app:hello
```

### Run the hello command.

[](#run-the-hello-command)

```
php console app:hello
```

### Run the hello command with optional `name` parameter

[](#run-the-hello-command-with-optional-name-parameter)

```
php console app:hello --name="Josh"
```

Adding your own commands.
-------------------------

[](#adding-your-own-commands)

You can add new commands by adding a class that extends `Symfony\Component\Console\Command\Command` to the `app\Commands` directory.

Once you've added your command, register it in the `console` script.

```
// ... register commands
$application->add(new Commands\Hello());
```

> See `app\Commands\Hello` for an example.

See  for full documentation.

Testing
-------

[](#testing)

```
composer test
```

Coding Standards
----------------

[](#coding-standards)

This library uses [PHP\_CodeSniffer](http://www.squizlabs.com/php-codesniffer) to ensure coding standards are followed.

I have adopted the [PHP FIG PSR-2 Coding Standard](http://www.php-fig.org/psr/psr-2/) EXCEPT for the tabs vs spaces for indentation rule. PSR-2 says 4 spaces. I use tabs. No discussion.

To support indenting with tabs, I've defined a custom PSR-2 ruleset that extends the standard [PSR-2 ruleset used by PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/CodeSniffer/Standards/PSR2/ruleset.xml). You can find this ruleset in the root of this project at PSR2Tabs.xml

### Codesniffer

[](#codesniffer)

```
composer codensiffer
```

### Codefixer

[](#codefixer)

```
composer codefixer
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

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/1cda8a02682a999e89bc2443c6c169b1dc9228cc4709d0b5fad642dc2a151141?d=identicon)[joshmoody](/maintainers/joshmoody)

### Embed Badge

![Health badge](/badges/simpl-console/health.svg)

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

###  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)
