PHPackages                             curruwilla/console-pretty-log - 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. curruwilla/console-pretty-log

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

curruwilla/console-pretty-log
=============================

Simple and customizable console log output for CLI apps.

1.4(2y ago)41.6kMITPHPPHP &gt;=7.4

Since Jul 31Pushed 2y ago1 watchersCompare

[ Source](https://github.com/curruwilla/console-pretty-log)[ Packagist](https://packagist.org/packages/curruwilla/console-pretty-log)[ RSS](/packages/curruwilla-console-pretty-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Console Pretty Print
====================

[](#console-pretty-print)

[![PHP from Packagist](https://camo.githubusercontent.com/db413f19a83e99eee35d1602addf50b3e688fdaa9a14463abfa369106df98fb3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f637572727577696c6c612f636f6e736f6c652d7072657474792d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/curruwilla/console-pretty-log)[![Latest Version](https://camo.githubusercontent.com/246f6f94cd0f2ce3442741f350ca06c70d5a157b1070fbdb69333c3d41ef1dba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f637572727577696c6c612f636f6e736f6c652d7072657474792d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://github.com/curruwilla/console-pretty-log/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/f003e237fcc79832460f3cc48b2bf6fef5cdb6ff37682346119550623d7bd44b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f637572727577696c6c612f636f6e736f6c652d7072657474792d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/curruwilla/console-pretty-log)[![Quality Score](https://camo.githubusercontent.com/907d6a6bc79985a182024d767ce482efdba3539c7bb378fcda5a8ef1a06339d9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f637572727577696c6c612f636f6e736f6c652d7072657474792d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/curruwilla/console-pretty-log)[![Total Downloads](https://camo.githubusercontent.com/63967481440bfe489050547fdcbec761dc543fea62fbce5013664e88544c4ee9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f637572727577696c6c612f636f6e736f6c652d7072657474792d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/curruwilla/console-pretty-log)

Simple and customizable console log output for CLI apps.

### Highlights

[](#highlights)

- Simple installation (Instalação simples)
- Very easy to customize text output (Muito fácil de customizar a saída de texto)
- Composer ready and PSR-12 compliant (Pronto para o composer e compatível com PSR-12)

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

[](#installation)

Uploader is available via Composer:

```
"curruwilla/console-pretty-log": "^1.0"
```

or run

```
composer require curruwilla/console-pretty-log
```

Documentation
-------------

[](#documentation)

Check the example file.

If you are defining the size of columns, when using **textInitial** be sure to enter the size as well.

**Example:**

```
use ConsolePrettyLog\Background;
use ConsolePrettyLog\Color;
use ConsolePrettyLog\Font;
use ConsolePrettyLog\Line;

$line = new Line();
$line->columnsSize([15, 75, 10]); // separator('-'); paddingCharacter(' '); enableDate(false); dateFormat("d/m/Y H:i"); textInitial('LOG', [Color::RED, Font::BOLD]); textInitial('IMPORTANT', [Font::BOLD]); text('Account 1', [Font::BOLD, Font::ITALIC])
    ->text('Delivery made successfully', [Color::WHITE])
    ->text('Success', [Color::GREEN])
    ->print();

$line
    ->text('Account 2', [Font::BOLD])
    ->text('Opps, something went wrong with the delivery, please see the log', [Color::WHITE])
    ->text('Error', [Background::RED])
    ->print();

$line
    ->text('Account 3', [Font::BOLD])
    ->text('Payment made successfully', [Color::WHITE, Font::ITALIC])
    ->text('SUCCESS', [Background::GREEN])
    ->print();

$line
    ->text('Account 1', [Font::BOLD])
    ->text('Payment made successfully', [Color::WHITE])
    ->text('INFO', [Background::BLUE])
    ->print();
```

**Result in CLI:**

[![example.png](example.png)](example.png)

**Enums Options:**

[![options_enums.png](options_enums.png)](options_enums.png)

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/curruwilla/console-pretty-log/blob/master/CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/curruwilla/console-pretty-log/blob/master/LICENSE) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

5

Last Release

914d ago

PHP version history (2 changes)1.0PHP ^7.4

1.3PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/396d48be448ca0eda3dac156dc0c28d83e869465016e463be3bae6bd9b2c60e2?d=identicon)[curruwilla](/maintainers/curruwilla)

---

Top Contributors

[![curruwilla](https://avatars.githubusercontent.com/u/7454081?v=4)](https://github.com/curruwilla "curruwilla (14 commits)")

---

Tags

logcliconsolepretty

### Embed Badge

![Health badge](/badges/curruwilla-console-pretty-log/health.svg)

```
[![Health](https://phpackages.com/badges/curruwilla-console-pretty-log/health.svg)](https://phpackages.com/packages/curruwilla-console-pretty-log)
```

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[shalvah/clara

🔊 Simple, pretty, testable console output for CLI apps.

2811.8M6](/packages/shalvah-clara)[trash-panda/progress-bar-log

Component to display a progress bar and last X logs at the same time

4119.2k](/packages/trash-panda-progress-bar-log)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)[pahanini/yii2-consolelog

Dumps log to console

19231.3k1](/packages/pahanini-yii2-consolelog)[phpconsole/phpconsole

A detached logging facility for PHP to aid your daily development routine

417.5k1](/packages/phpconsole-phpconsole)

PHPackages © 2026

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