Search by

adachsoft / symfony-console-io

Arkadiusz Adach

Integrates AdachSoft Console IO formatting with Symfony Console outputs.

Package info

gitlab.com/a.adach/symfony-console-io

Issues

pkg:composer/adachsoft/symfony-console-io

Statistics

Installs: 5

Dependents: 1

Suggesters: 0

Stars: 0

v0.1.0 2026-10-26 16:38 UTC

This package is not auto-updated.

Last update: 2026-10-26 18:48:46 UTC


README

A small bridge for using AdachSoft Console IO formatting with Symfony Console output streams.

Features

  • Wrap any Symfony Console OutputInterface with DecoratedOutputFactory.
  • Route formatted output through the color and icon decorators from adachsoft/console-io.
  • Preserve Symfony's output contract, including access to the error output stream.
  • Provide a Symfony-compatible console section output.

Installation

composer require adachsoft/symfony-console-io

Basic usage

use AdachSoft\SymfonyConsoleIo\Factory\DecoratedOutputFactory;
use Symfony\Component\Console\Output\ConsoleOutput;

$output = (new DecoratedOutputFactory())->create(new ConsoleOutput());
$output->writeln('<info>Operation completed.</info>');

The factory also accepts the OutputInterface passed to a Symfony Console command. The returned object implements Symfony's ConsoleOutputInterface.

Examples