PHPackages                             smt/symfony-console-styles - 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. smt/symfony-console-styles

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

smt/symfony-console-styles
==========================

Small set of styles for symfony/console, currently containing gentoo and linux kernel styles.

v1.0.1(10y ago)0431MITPHPPHP &gt;=5.4

Since Jul 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/saksmt/symfony-console-styles)[ Packagist](https://packagist.org/packages/smt/symfony-console-styles)[ Docs](https://github.com/saksmt/symfony-console-styles)[ RSS](/packages/smt-symfony-console-styles/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (1)

symfony-console-styles
======================

[](#symfony-console-styles)

Small set of styles for symfony/console, currently containing gentoo and linux kernel styles.

Installation
============

[](#installation)

```
composer require smt/symfony-console-styles

```

Usage
=====

[](#usage)

```
use Smt\Component\Console\Style\GentooStyle; // Or KernelStyle

// ...

public function execute(InputInterface $input, OutputInterface $output) {

    // ...

    $dialog = new GentooStyle($output, $input);
    $dialog->success('Hello world!');

```

Quick overview
--------------

[](#quick-overview)

```
use Smt\Component\Console\Test\VisualTest;

// ...

$test = new VisualTest();
$test->run($gentooStyle);
$test->run($kernelStyle);

```

API
===

[](#api)

All from `Symfony\Component\Style\OutputStyle` and some additions.

Let's say that we wrote `use Smt\Component\Console\Style\GentooStyle as Style` or `use Smt\Component\Console\Style\KernelStyle as Style`

Messages
--------

[](#messages)

Here `$message` can be string or array of strings.

- `Style::message($message, $type, $prefix)` - allows to print messages with some prefix, mostly used internally;
- `Style::success($message)` - Prints success message;
- `Style::info($message)` - Prints info message;
- `Style::text($message)` - Inherited from `OutputStyle`, just an alias for `Style::info($message)`;
- `Style::note($message)` - Prints note message;
- `Style::warning($message)` - Prints warning message;
- `Style::important($message)` - Prints important warning;
- `Style::error($message)` - Prints error message;
- `Style::caution($message)` - Prints caution message;

Headings
--------

[](#headings)

Here `$message` can only be string.

- `Style::title($message)` - Prints title;
- `Style::section($message)` - Prints section title;

Components
----------

[](#components)

- `Style::listing($items)` - Prints list (multidimensional array support);
- `Style::nestedList($items, $level = 1)` - Prints nested list at some level (multidimensional array support);
- `Style::table($headers, $rows)` - Prints table;
- `Style::progressStart($max = 0)` - Start progress (progressbar);
- `Style::progressAdvance($step = 1)` - Advance progress (progressbar);
- `Style::progressFinish()` - Finish progress (progressbar);

Interact
--------

[](#interact)

- `Style::ask($question, $default = null, $validator = null)` - Asks user a question;
- `Style::askHidden($question, $default = null, $validator = null)` - Asks user a question and hides input;
- `Style::confirm($question, $default = true)` - Asks user to confirm;
- `Style::choice($question, $choices, $default = null)` - Asks user to select from choice list;

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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 ~6 days

Total

3

Last Release

3941d ago

Major Versions

v0.0.0 → v1.0.02015-08-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/056f804db1fb4e94cf408db237cf37b934a0c19253decb2ab5e1fae236f1ef83?d=identicon)[smt](/maintainers/smt)

---

Tags

cliconsolesymfonylinuxkernelgentoo

### Embed Badge

![Health badge](/badges/smt-symfony-console-styles/health.svg)

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

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)[nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

662.0M3](/packages/nunomaduro-laravel-console-summary)[fidry/console

Library to create CLI applications

192.0M4](/packages/fidry-console)

PHPackages © 2026

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