GitHub - pprins/php-colour-cli: Allows you to have coloured output in the commandline from PHP

Skip to content

Navigation Menu

Sign in

Appearance settings

php-colour-cli

Allows you to have coloured output in the commandline from PHP

Usage

<?php
// Include it manually or put in the library folder
// of your framework. For example, I use it in Laravel
require_once("colourfulcli.php");
// Debugging
Colourfulcli::debug("My text");

// Normal line
Colourfulcli::line("My text");

// a comment
Colourfulcli::comment("My text");

// an error
Colourfulcli::error("My text");

// an info line
Colourfulcli::info("My text");

Contact

http://www.keyboardninja.eu