adachsoft / symfony-console-io
Integrates AdachSoft Console IO formatting with Symfony Console outputs.
v0.1.0
2026-10-26 16:38 UTC
Requires
- php: ^8.3
- adachsoft/console-io: ^0.2
- symfony/console: ^7.3
Requires (Dev)
- adachsoft/php-code-style: ^0.7.1
- friendsofphp/php-cs-fixer: ^3.68
- phpstan/phpstan: ^2.3
- phpunit/phpunit: ^12.4
- rector/rector: ~2.6.0
- symplify/phpstan-rules: ^14.9
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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
OutputInterfacewithDecoratedOutputFactory. - 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.