PHPackages                             mf/symfony-console-subscriber - 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. mf/symfony-console-subscriber

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

mf/symfony-console-subscriber
=============================

Console Subscriber for Symfony Console

3.0.0(3y ago)21.3k↑50%MITPHPPHP ^8.1

Since Oct 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MortalFlesh/symfony-console-subscriber)[ Packagist](https://packagist.org/packages/mf/symfony-console-subscriber)[ RSS](/packages/mf-symfony-console-subscriber/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (7)Used By (0)

Symfony Console Subscriber
==========================

[](#symfony-console-subscriber)

[![Latest Stable Version](https://camo.githubusercontent.com/0944bd3fa158c4095988fa793cb3a3fb04ea5487c8a5220b77b51f60bf9283f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d662f73796d666f6e792d636f6e736f6c652d737562736372696265722e737667)](https://packagist.org/packages/mf/symfony-console-subscriber)[![Tests and linting](https://github.com/MortalFlesh/symfony-console-subscriber/actions/workflows/tests.yaml/badge.svg)](https://github.com/MortalFlesh/symfony-console-subscriber/actions/workflows/tests.yaml)[![Coverage Status](https://camo.githubusercontent.com/b910bfde9647001f297af5f82c795902c9793c6a1b10164d503d3a7110fe695d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4d6f7274616c466c6573682f73796d666f6e792d636f6e736f6c652d737562736372696265722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/MortalFlesh/symfony-console-subscriber?branch=master)[![Total Downloads](https://camo.githubusercontent.com/fffd5f444b8e682831347acfa5037d8235dc5030fa3d7f133960041f6f8f2215/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d662f73796d666f6e792d636f6e736f6c652d737562736372696265722e737667)](https://packagist.org/packages/mf/symfony-console-subscriber)[![License](https://camo.githubusercontent.com/f1844f30357c6cf2c11925266181fdc520fe976232a9d956f78bd57f5c5d1288/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d662f73796d666f6e792d636f6e736f6c652d737562736372696265722e737667)](https://packagist.org/packages/mf/symfony-console-subscriber)

Console Subscriber for Symfony Console.

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

[](#installation)

```
composer require mf/symfony-console-subscriber
```

Usage
-----

[](#usage)

### Comparision

[](#comparision)

It is same as using `SymfonyStyle` directly, you just use `EventDispatcher` to handle your events.

`SymfonyStyle`

```
$io->note('note');

// vs Dispatching

$eventDispatcher->dispatch(new NoteEvent('Some note.'));
```

### initialization

[](#initialization)

```
$io = new SymfonyStyle();
$subscriber = new ConsoleSubscriber();

$subscriber->setIo($io);

$eventDispatcher->addSubscriber($subscriber);
```

### dispatch

[](#dispatch)

Note

```
$eventDispatcher->dispatch(new NoteEvent('Some note.'));
```

Progress

```
$items = [1, 2, 3];

$eventDispatcher->dispatch(new ProgressStartEvent($items));

foreach($items as $i) {
    // do something

    $eventDispatcher->dispatch(new ProgressAdvanceEvent());
}

$eventDispatcher->dispatch(new ProgressFinishedEvent('All items were iterated!'));
```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity76

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~345 days

Recently: every ~430 days

Total

6

Last Release

1384d ago

Major Versions

0.2.0 → 1.0.02021-04-06

1.0.0 → 2.0.02021-04-06

2.1.0 → 3.0.02022-07-25

PHP version history (4 changes)0.1.0PHP &gt;=7.1

1.0.0PHP ^7.4

2.0.0PHP ^8.0

3.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bdf0b9957c08a48e70a52fce74fc4f1add30b12d442450d5e2b48854fc98b21?d=identicon)[MortalFlesh](/maintainers/MortalFlesh)

---

Top Contributors

[![MortalFlesh](https://avatars.githubusercontent.com/u/6317184?v=4)](https://github.com/MortalFlesh "MortalFlesh (25 commits)")

---

Tags

symfonysymfony-consolesymfony-eventdispatchersymfony-style

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mf-symfony-console-subscriber/health.svg)

```
[![Health](https://phpackages.com/badges/mf-symfony-console-subscriber/health.svg)](https://phpackages.com/packages/mf-symfony-console-subscriber)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)[n98/magerun

Tools for managing Magento projects and installations

1.4k264.7k7](/packages/n98-magerun)[zenstruck/schedule-bundle

Schedule Cron jobs (commands/callbacks/bash scripts) within your Symfony application.

4041.0M2](/packages/zenstruck-schedule-bundle)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)[dpi/dogit

191.1k](/packages/dpi-dogit)

PHPackages © 2026

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