PHPackages                             jralph/laravel-artisan-colour - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jralph/laravel-artisan-colour

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jralph/laravel-artisan-colour
=============================

1.0.0(12y ago)453PHPPHP &gt;=5.4.0

Since Jun 24Pushed 12y ago1 watchersCompare

[ Source](https://github.com/jralph/Laravel-Artisan-Colours)[ Packagist](https://packagist.org/packages/jralph/laravel-artisan-colour)[ RSS](/packages/jralph-laravel-artisan-colour/feed)WikiDiscussions master Synced today

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

Laravel Artisan Colours
=======================

[](#laravel-artisan-colours)

A simple extension of the laravel `Illuminate\Console\Command` object to add some colour functionality.

Laravel's artisan already has some colour features using the `info`, `error`, `comment` and `line` methods, but it does not give you all of them. This package lets you use all of the available ANSI colours with the `line` method.

Install
-------

[](#install)

Installation is nice and simple using composer.

Add the package to your `composer.json` file.

```
"require": {
    ...
    "jralph/laravel-artisan-colour": "1.*"
}

```

Once done, run a `composer update` and follow the setup below.

Setup
-----

[](#setup)

Setup is nice and simple and only requires two steps.

1. Add `'Jralph\LaravelArtisanColour\LaravelArtisanColourServiceProvider',` to your `app/config/app.php` `providers` array.
2. Make sure that any classes you want to use the colours extend `Jralph\LaravelArtisanColour\Console\Command`.

Usage
-----

[](#usage)

Using the colours is easy and straight forward.

Colours are only available on the `$this->line();` method as the others already have colours associated with them.

Syntax:

```
- __With Background__: `$this->line('This is some text.', 'text_colour:background_colour');`
- __Only Test__: `$this->line('This is some text.', 'text_colour');`

```

Available Colours
-----------------

[](#available-colours)

Below is a list of all available text colour and background colours.

- Black
- White
- Red
- Green
- Blue
- Yellow
- Cyan
- Magenta

Using a combination of the above colours with the package will give you the desired text/background colours.

Optional Config
---------------

[](#optional-config)

The package also includes optional configuration that you may change if desired.

Publish the config: `php artisan config:publish jralph/LaravelArtisanColour`

### config.php

[](#configphp)

This file contains a single option. Should the colours be output when using windows.

If this option is true, the package will output the ansi colour codes. If you do not have your command line setup to read these codes and set the colours, then you may want to set this option to false.

### ansi.php

[](#ansiphp)

This file contains settings for all of the colours.

In this file you can set the default text colour (white) and default background colour (black).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

4392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40961dbdd7f3ae5a69c3964bed644239689c6ae64b1355b9b5d504233f271bc9?d=identicon)[jralph](/maintainers/jralph)

### Embed Badge

![Health badge](/badges/jralph-laravel-artisan-colour/health.svg)

```
[![Health](https://phpackages.com/badges/jralph-laravel-artisan-colour/health.svg)](https://phpackages.com/packages/jralph-laravel-artisan-colour)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M374](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M137](/packages/illuminate-cookie)

PHPackages © 2026

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