PHPackages                             jbrooksuk/laravel-colorize - 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. jbrooksuk/laravel-colorize

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

jbrooksuk/laravel-colorize
==========================

A handy set of Stringable mixins for CLI text.

v0.1.0(5y ago)486MITPHP

Since May 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jbrooksuk/laravel-colorize)[ Packagist](https://packagist.org/packages/jbrooksuk/laravel-colorize)[ GitHub Sponsors](https://github.com/jbrooksuk)[ RSS](/packages/jbrooksuk-laravel-colorize/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel Colorize
================

[](#laravel-colorize)

A mixin for Laravel's `Stringable` to easily apply colors and styles to CLI text.

[![Latest Version on Packagist](https://camo.githubusercontent.com/f7fa5b7dd50eacdf62b9c95281b937f28a8ff7e9af515718c3e7ec975a4519f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a62726f6f6b73756b2f6c61726176656c2d636f6c6f72697a653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jbrooksuk/laravel-colorize)[![Test](https://github.com/jbrooksuk/laravel-colorize/workflows/Test/badge.svg)](https://github.com/jbrooksuk/laravel-colorize/workflows/Test/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/ea7546a69156259a041362119c9862bafbcc5abd985713286035e4474a10d58e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a62726f6f6b73756b2f6c61726176656c2d636f6c6f72697a653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jbrooksuk/laravel-colorize)

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

[](#installation)

You can install the package via Composer:

```
composer require jbrooksuk/laravel-colorize

```

Usage
-----

[](#usage)

### `blink`

[](#blink)

Make the text blink.

```
Str::of('Hey Laravel')->blink();
```

### `bold`

[](#bold)

Make the text bold.

```
Str::of('Hey Laravel')->bold();
```

### `colorize`

[](#colorize)

Colorize the text. Foreground, Background.

```
Str::of('Hey Laravel')->colorize('red', 'blue');
```

### `conceal`

[](#conceal)

Make the text invisible.

```
Str::of('Hey Laravel')->conceal();
```

### `reverse`

[](#reverse)

Swap the foreground with the background and the background with the foreground.

```
Str::of('Hey Laravel')->colorize('red', 'blue')->reverse();
```

### `underscore`

[](#underscore)

Make the text underscored.

```
Str::of('Hey Laravel')->underscore();
```

Chaining
--------

[](#chaining)

Because Laravel Colorize uses `Stringable`, all of these methods can be chained together.

```
Str::of('Hey Laravel')->colorize('red', 'yellow')->bold()->blink();
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1868d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e4934b15ff7d8cffabece955994bed29b31429f4c2e8f13fa0868c753bb1c30?d=identicon)[jbrooksuk](/maintainers/jbrooksuk)

---

Top Contributors

[![jbrooksuk](https://avatars.githubusercontent.com/u/246103?v=4)](https://github.com/jbrooksuk "jbrooksuk (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jbrooksuk-laravel-colorize/health.svg)

```
[![Health](https://phpackages.com/badges/jbrooksuk-laravel-colorize/health.svg)](https://phpackages.com/packages/jbrooksuk-laravel-colorize)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M303](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[spatie/laravel-flare

Send Laravel errors to Flare

111.4M7](/packages/spatie-laravel-flare)

PHPackages © 2026

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