PHPackages                             buzzlightyear/colour-logger - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. buzzlightyear/colour-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

buzzlightyear/colour-logger
===========================

A powerful, fluent API for colored logging in Laravel applications, built on top of Monolog.

v1.1.0(1y ago)09MITPHPPHP ^7.4|^8.0

Since Jun 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/buzzlightyear1309/colour-logger)[ Packagist](https://packagist.org/packages/buzzlightyear/colour-logger)[ RSS](/packages/buzzlightyear-colour-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

ColourLogger
============

[](#colourlogger)

ColourLogger is a powerful, fluent API for coloured logging in PHP applications, leveraging Monolog to enhance readability and focus during development by adding coloured and styled text capabilities to console logging.

Features
--------

[](#features)

- Easy integration with any Laravel application.
- Fluent interface to configure foreground and background colours, as well as text styles such as bold, italic, and underline.
- Built on top of the robust Monolog logging library.
- Support for logging complex data types including arrays and objects, with optional pretty-print JSON formatting.

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

[](#installation)

Install ColourLogger via Composer:

```
composer require buzzlightyear/colour-logger
```

Usage
-----

[](#usage)

Here is how you can use ColourLogger in your PHP projects:

```
use App\Logging\ColourLogger;

// Basic usage
ColourLogger::text('blue')->log('This is a blue text');

// Complex styling
ColourLogger::text('blue')->background('red')->bold()->italic()->underline()->log('This message has red background and blue, bold, italic, underlined text');

// Logging complex data types with pretty-print JSON
ColourLogger::text('green')->json()->log(['key' => 'value', 'another_key' => 'another_value']);
```

Customize Colours
-----------------

[](#customize-colours)

You can easily customize the colours by accessing the `colour_map` array within the `ColourLogger` class. Modify this array to include your preferred ANSI colour codes.

Contributing
------------

[](#contributing)

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

To contribute to ColourLogger, follow these steps:

1. Fork the project repository.
2. Create a new branch (`git checkout -b feature/AmazingFeature`).
3. Make your changes.
4. Commit your changes (`git commit -m 'Add some AmazingFeature'`).
5. Push to the branch (`git push origin feature/AmazingFeature`).
6. Open a pull request.

License
-------

[](#license)

Distributed under the MIT License. See `LICENSE` file for more information.

Contact
-------

[](#contact)

Project Link:

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Every ~3 days

Total

2

Last Release

685d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92c65ecfd12c3d469c61d39fd5c01880b2d73768024a9797ce43d71704e206e0?d=identicon)[buzzlightyear1309](/maintainers/buzzlightyear1309)

---

Top Contributors

[![buzzlightyear1309](https://avatars.githubusercontent.com/u/20198028?v=4)](https://github.com/buzzlightyear1309 "buzzlightyear1309 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/buzzlightyear-colour-logger/health.svg)

```
[![Health](https://phpackages.com/badges/buzzlightyear-colour-logger/health.svg)](https://phpackages.com/packages/buzzlightyear-colour-logger)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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