PHPackages                             tjm/sy-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. [CLI &amp; Console](/categories/cli)
4. /
5. tjm/sy-console

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

tjm/sy-console
==============

Symfony Console component with dependency injection, config handling, configurable command loading, and other niceties.

v3.0.1(5mo ago)0820BSDPHPPHP &gt;=8

Since Dec 16Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/tobymackenzie/sy-console.symf)[ Packagist](https://packagist.org/packages/tjm/sy-console)[ RSS](/packages/tjm-sy-console/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (19)Used By (0)

sy-console
==========

[](#sy-console)

Symfony Console component plus dependency injection, config handling, easily configured loading of commands, STDIN as first argument, improvements to default command behavior, and other niceties.

Usage
-----

[](#usage)

Like most Symfony projects these days, you start with [composer](https://getcomposer.org/), requiring `tjm/sy-console` as a dependency. You'll create an application similar to [how you would with the symfony component alone](http://symfony.com/doc/current/components/console/introduction.html#creating-a-basic-command), but using the sy-console `Application` class and passing it configuration as an argument.

```
#!/usr/bin/env php
