PHPackages                             power-modules/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. [Framework](/categories/framework)
4. /
5. power-modules/console

ActiveLibrary[Framework](/categories/framework)

power-modules/console
=====================

PowerModuleSetup extension that auto-discovers and registers Symfony Console commands from Power Modules.

v0.3.0(3mo ago)091↓66.7%1MITPHPPHP ^8.4CI passing

Since Oct 15Pushed 3mo agoCompare

[ Source](https://github.com/power-modules/console)[ Packagist](https://packagist.org/packages/power-modules/console)[ RSS](/packages/power-modules-console/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (10)Versions (7)Used By (1)

Console
=======

[](#console)

[![Packagist Version](https://camo.githubusercontent.com/341d40cfd0996d762977a44abb91f380917935cb0992e9b5acc7de84e9e09efc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f7765722d6d6f64756c65732f636f6e736f6c65)](https://packagist.org/packages/power-modules/console)[![PHP Version](https://camo.githubusercontent.com/c42d7c2d04868861ca44a5cb8967d58d710de8412d429b3cf3c265a61f3135fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706f7765722d6d6f64756c65732f636f6e736f6c65)](https://packagist.org/packages/power-modules/console)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](LICENSE)[![PHPStan](https://camo.githubusercontent.com/1b02b2f6c2946c9b9ad2e14b1c79c5932fdcef4ea31b4d6e79d54af7d7e7a2a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d626c7565)](#)

A **PowerModuleSetup extension** for the [Power Modules Framework](https://github.com/power-modules/framework) that auto-discovers and registers Symfony Console commands from your modules.

Why a separate interface?
-------------------------

[](#why-a-separate-interface)

The framework's `ExportsComponents` is for sharing services between modules via `ImportsComponentsSetup` — it belongs to inter-module dependency wiring. Console commands are not services another module imports; they are an outward-facing capability of a module. This package introduces `ProvidesConsoleCommands` to express that cleanly, without conflating command registration with cross-module service sharing.

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

[](#installation)

```
composer require power-modules/console
```

Quick Start
-----------

[](#quick-start)

**1. Create a command in your module:**

```
