PHPackages                             thecodingmachine/symfony-console-universal-module - 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. thecodingmachine/symfony-console-universal-module

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

thecodingmachine/symfony-console-universal-module
=================================================

Cross-framework module for symfony/console.

v0.2.0(9y ago)0542MITPHPPHP &gt;=7.0

Since Dec 19Pushed 8y ago7 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/29380127878709c0589b93648a2a1801b72166cbae09ed19a543a298aaf5a9bf/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f73796d666f6e792d636f6e736f6c652d756e6976657273616c2d6d6f64756c652f762f737461626c65)](https://packagist.org/packages/thecodingmachine/symfony-console-universal-module)[![Latest Unstable Version](https://camo.githubusercontent.com/cde16dc515a9976b3b1cb5c4a79b868e07ad6c3a8640c93a8a97ecc2ae9e132e/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f73796d666f6e792d636f6e736f6c652d756e6976657273616c2d6d6f64756c652f762f756e737461626c65)](https://packagist.org/packages/thecodingmachine/symfony-console-universal-module)[![License](https://camo.githubusercontent.com/80f89ea22e00ffe074bc4f9d01e1072821a5d24c60e0dfed7a95b1e312ac72af/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f73796d666f6e792d636f6e736f6c652d756e6976657273616c2d6d6f64756c652f6c6963656e7365)](https://packagist.org/packages/thecodingmachine/symfony-console-universal-module)

Symfony console universal module
================================

[](#symfony-console-universal-module)

This package integrates [symfony/console](https://github.com/symfony/console) in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.

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

[](#installation)

```
composer require thecodingmachine/symfony-console-universal-module

```

Once installed, you need to register the [`TheCodingMachine\SymfonyConsoleServiceProvider`](src/SymfonyConsoleServiceProvider.php) into your container.

If your container supports thecodingmachine/discovery integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register *service providers*.

Introduction
------------

[](#introduction)

This service provider is meant to create a Symfony console in your container.

You can access the console using: `vendor/bin/app_console`.

For the console to work, you need to have a `container.php` file at the root of your project or in the 'config' directory. This file MUST returns your application's container. This file will be used by the Symfony console to access and start the application.

Sample:

**container.php** (or **config/container.php**)

```
