PHPackages                             yuralukashik/short-commands-bundle - 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. yuralukashik/short-commands-bundle

ActiveBundle

yuralukashik/short-commands-bundle
==================================

Short commands for Symfony Console

1.2.1(3y ago)315.4k[1 PRs](https://github.com/YuraLukashik/short-commands-bundle/pulls)MITPHPPHP &gt;=7.4.2

Since Apr 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/YuraLukashik/short-commands-bundle)[ Packagist](https://packagist.org/packages/yuralukashik/short-commands-bundle)[ RSS](/packages/yuralukashik-short-commands-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (6)Used By (0)

Short commands for Symfony Console
==================================

[](#short-commands-for-symfony-console)

- Install `ShortCommandsBundle`.

```
composer require yuralukashik/short-commands-bundle
```

- Register a folder with your commands, see `config.yml`:

```
short_commands:
  directories:
    - "%kernel.root_dir%/../examples"
```

- Create a PHP file, for example `examples/example:use-filesystem-service.php`. Name of the file `example:use-filesystem-service` is going to be the name of the command.
- Return a function from that file with all dependencies as arguments:

```
