PHPackages                             essgeebee/console-command-service-provider - 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. essgeebee/console-command-service-provider

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

essgeebee/console-command-service-provider
==========================================

A Silex Service Provider for common console commands for Cache, Doctrine DBAL, and Assetic

19PHP

Since Apr 7Pushed 12y ago1 watchersCompare

[ Source](https://github.com/tentwofour/console-command-service-provider)[ Packagist](https://packagist.org/packages/essgeebee/console-command-service-provider)[ RSS](/packages/essgeebee-console-command-service-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

console-command-service-provider
================================

[](#console-command-service-provider)

A Silex Service Provider for common console commands for Cache, Doctrine DBAL, and Assetic

\##Installing

Add the dependency to your composer.json

```
"essgeebee/console-command-service-provider"    : "dev-master"

```

\###Installing the skeleton app/console and src/console.php files

*Note that these files assume a particular project structure - see the templates/console file for more details*

Add to your composer.json

```
"autoload": {
        "psr-0": {
          ...
          "Ten24": "vendor/essgeebee/console-command-service-provider/src/"
        }
    },
...
"scripts": {
        "post-install-cmd": [
            "Ten24\\Composer\\ConsoleCommandInstaller::postInstallCmd"
        ],
        "post-update-cmd": [
            "Ten24\\Composer\\ConsoleCommandInstaller::postUpdateCmd"
        ]
    }

```

Run

```
composer run-script post-update-cmd
```

or

```
composer run-script post-install-cmd
```

This will attempt to create the directories 'app' and 'src' at the root of your project if they don't exist, and copy templates/console and templates/console.php to app/ and src/, respectively.

From your terminal, you should now be able to run

```
app/console
```

and get something to this effect:

```
MyProject version 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
assetic
  assetic:dump               Dumps all assets to the filesystem
cache
  cache:clear                Clears the cache
doctrine
  doctrine:database:create   Creates the configured databases
  doctrine:database:drop     Drops the configured databases
  doctrine:schema:load       Load schema
  doctrine:schema:show       Output schema declaration
```

\##Registered Commands By default, the following commands are registered to the console:

- doctrine:schema:show
- doctrine:schema:load
- doctrine:database:create
- doctrine:database:drop
- cache:clear
- assetic:dump

\##Configuration Options

The Provider looks for its options within the $app\['ten24.consolecommand.options'\]. Here's a list of the available options - all keys within $app\['ten24.consolecommand.options'\]. Note that the required options *do* have a default value, that may not align to your project structure.

- doctrine
    - schemaFile (required, default: $app\['root.dir'\]./app/config/database/schema.php)
    - registerSchemaShow (optional, default: true)
    - registerSchemaLoad (optional, default: true)
    - registerDatabaseDrop (optional, default: true)
    - registerDatabaseCreate (optional, default: true)
- cache
    - cachePath (required, default: $app\['root.dir'\]./app/cache)
    - registerClear (optional, default: true)
- assetic
    - registerDump (optional, default: true)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d8857f054ee361525938a1158bc30970476b45f882878a8b8b2bdb87a9fe217?d=identicon)[tentwofour](/maintainers/tentwofour)

---

Top Contributors

[![tentwofour](https://avatars.githubusercontent.com/u/4117615?v=4)](https://github.com/tentwofour "tentwofour (3 commits)")

### Embed Badge

![Health badge](/badges/essgeebee-console-command-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/essgeebee-console-command-service-provider/health.svg)](https://phpackages.com/packages/essgeebee-console-command-service-provider)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M318](/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)
