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

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

suncat/console-commands
=======================

Console commands in PHP

v1.0.0(13y ago)1525337[1 issues](https://github.com/suncat2000/console-commands/issues)PHPPHP &gt;=5.3.3

Since Mar 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/suncat2000/console-commands)[ Packagist](https://packagist.org/packages/suncat/console-commands)[ RSS](/packages/suncat-console-commands/feed)WikiDiscussions master Synced 1mo ago

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

Console commands tool in PHP
============================

[](#console-commands-tool-in-php)

Tool to quickly write console commands in PHP. It is based on a [Symfony Console Component](http://symfony.com/doc/master/components/console/introduction.html).

Depends:

- [symfony/console](https://github.com/symfony/Console)
- [symfony/finder](https://github.com/symfony/Finder)

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

[](#installation)

Create project with [Composer](http://getcomposer.org/doc/03-cli.md#create-project):

```
$ composer create-project suncat/console-commands ./cmd

```

go to the `cmd` directory with project:

```
$ cd ./cmd

```

Done!

Usage
=====

[](#usage)

Look at list available commands

```
$ app/console list

...
Available commands:
    generate   Generate skeleton class for new command
    help       Displays help for a command
    list       Lists commands
    test       Command test

```

Generate skeleton command class:

```
$ app/console generate

```

Write name of your command class in console dialog:

`Please enter the name of the command class:` AcmeCommand

Get the answer:

```
Generated new command class to "./cmd/src/Command/AcmeCommand.php"

```

Look at list available commands

```
$ app/console list

...
Available commands:
    acme       Command acme
    generate   Generate skeleton class for new command
    help       Displays help for a command
    list       Lists commands
    test       Command test

```

Execute your command `acme`:

```
$ app/console acme
Execute

```

Now you can change the logic of your command class on your own.

If the name of your command class will be in CamelCase you get `camel:case` command.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% 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

4797d ago

### Community

Maintainers

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

---

Top Contributors

[![suncat2000](https://avatars.githubusercontent.com/u/1162437?v=4)](https://github.com/suncat2000 "suncat2000 (15 commits)")[![nek-v](https://avatars.githubusercontent.com/u/865404?v=4)](https://github.com/nek-v "nek-v (2 commits)")

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

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

Initialize Symfony Console commands from annotated command class methods.

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