PHPackages                             exu/symfony2-console-standalone - 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. exu/symfony2-console-standalone

ActiveLibrary

exu/symfony2-console-standalone
===============================

Symfony2 console as standalone component

48PHP

Since Jan 10Pushed 12y ago1 watchersCompare

[ Source](https://github.com/exu/symfony2-console-standalone)[ Packagist](https://packagist.org/packages/exu/symfony2-console-standalone)[ RSS](/packages/exu-symfony2-console-standalone/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Using Symfony2 Console as standalone component.
-----------------------------------------------

[](#using-symfony2-console-as-standalone-component)

[![http://wysocki.in/assets/img/sf2-console-component.png](https://camo.githubusercontent.com/e7391ed32bb42db1a711f9d05aa721665b6ef7dc977b73df5ec69f56fab72ee3/687474703a2f2f7779736f636b692e696e2f6173736574732f696d672f7366322d636f6e736f6c652d636f6d706f6e656e742e706e67)](https://camo.githubusercontent.com/e7391ed32bb42db1a711f9d05aa721665b6ef7dc977b73df5ec69f56fab72ee3/687474703a2f2f7779736f636b692e696e2f6173736574732f696d672f7366322d636f6e736f6c652d636f6d706f6e656e742e706e67)

All files are located on My GitHub project: [Symfony2 Console as standalone component](https://github.com/exu/symfony2-console-standalone)

To use symfony console you should create `[[https://github.com/exu/symfony2-console-standalone/blob/master/composer.json][composer.json]]` file and add `symfony/console` component You should replace ”`dev-master`” to current stable version (I’m trying whats new in development branch).

I’m using composer autoloader, so in this example all classes will be loaded from `src` directory, you can change it to other dir (in `composer.json`)

Next run `$ composer update` to install dependencies in your new project.

Next thing to do is Your new shiny command loader. Put it in `bin/console` file - or whatever you want - but if you change directory position remember that you should adjust your paths [details in console file](https://github.com/exu/symfony2-console-standalone/blob/master/bin/console)

Finally create your new command [file (src) for example](https://github.com/exu/symfony2-console-standalone/blob/master/src/Command/Test2Command.php):

Thats all, command loader should detect this file and load it. You can use your command by running `php bin/console say:nothing`.

You can put other commands in `src/Command` directory try save content below as `[[https://github.com/exu/symfony2-console-standalone/blob/master/src/Command/TestCommand.php][src/Command/TestCommand.php]]`

and then run: `bin/console say:mynamebitch Jacek`

You will get some nice colorized output.

### Enjoy!

[](#enjoy)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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/a6e109fc501c806431a5427758cc1694c3b53250bc3bce14096e8419ba4e39e9?d=identicon)[exu](/maintainers/exu)

---

Top Contributors

[![exu](https://avatars.githubusercontent.com/u/30776?v=4)](https://github.com/exu "exu (15 commits)")

### Embed Badge

![Health badge](/badges/exu-symfony2-console-standalone/health.svg)

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

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
