PHPackages                             eznio/styler - 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. eznio/styler

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

eznio/styler
============

Simple CLI styling helper

1.1.1(8y ago)0302↓100%1MITPHPPHP &gt;=7.0.0

Since Dec 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/eznio/styler)[ Packagist](https://packagist.org/packages/eznio/styler)[ Docs](https://github.com/eznio/styler)[ RSS](/packages/eznio-styler/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (5)Used By (1)

Simple CLI style helper
=======================

[](#simple-cli-style-helper)

Overview
--------

[](#overview)

Simple CLI styling helper. Generates ASCII sequences to change console bg/fg-colors and some text effects

```
echo Styler::get(Styles::HYPERLINK) . 'this looks like a link' . Styler::reset() . "\n";

echo Styler::get([
    BackgroundColors::WHITE,
    ForegroundColors::BLUE,
    TestStyles::UNDERLINE
]) . 'this looks like a link too!' . Styler::reset() . "\n";
```

Reference
---------

[](#reference)

```
Styler::get(array $style)
```

Returns sequence for given style(-s). Preferred one.

```
Styler::single($style)
```

Returns sequence for single given style

```
Styler::combined(array $styles)
```

Returns sequence for multiple given styles

```
Styler::reset()
```

Returns reset sequence (return to console default colors)

Style reference files
---------------------

[](#style-reference-files)

- `ForegroundColors` - foreground colors list
- `BackgroundColors` - background colors list
- `TextStyles` - list of text styles. Some of them may be not supported by your console!
- `StyleSets` - some useful (sometimes) shortcuts

###  Health Score

29

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

3210d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

1.1.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d81a9338efaa22b0fd0e98575091f89f86190ab34354e3a555655a7b5a2a6f75?d=identicon)[evgeny-zinder](/maintainers/evgeny-zinder)

---

Top Contributors

[![evgeny-zinder](https://avatars.githubusercontent.com/u/6049024?v=4)](https://github.com/evgeny-zinder "evgeny-zinder (8 commits)")

---

Tags

cliconsolehelperstyle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eznio-styler/health.svg)

```
[![Health](https://phpackages.com/badges/eznio-styler/health.svg)](https://phpackages.com/packages/eznio-styler)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B10.2k](/packages/symfony-console)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k230.3M229](/packages/nunomaduro-termwind)[nunomaduro/collision

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

4.6k324.1M7.3k](/packages/nunomaduro-collision)[wp-cli/php-cli-tools

Console utilities for PHP

68324.1M331](/packages/wp-cli-php-cli-tools)[buggregator/trap

A simple and powerful tool for debugging PHP applications.

2541.5M26](/packages/buggregator-trap)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.5M15](/packages/seld-cli-prompt)

PHPackages © 2026

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