PHP-Console-Highlighter

by JakubOnderka

Highlight PHP code in terminal

6.1K Stars 18 Forks Last release: about 2 years ago (v0.4) MIT License 63 Commits 6 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

PHP Console Highlighter

This repository is abandoned.

Suggested alternative: https://github.com/php-parallel-lint/PHP-Console-Highlighter


Highlight PHP code in console (terminal).

Example

Example

Install

Just create a

composer.json
file and run the
php composer.phar install
command to install it:
{
    "require": {
        "jakub-onderka/php-console-highlighter": "0.*"
    }
}

Usage

require DIR . '/vendor/autoload.php';

$highlighter = new Highlighter(new ConsoleColor());

$fileContent = file_get_contents(FILE); echo $highlighter->getWholeFile($fileContent);


Downloads this Month Build Status License

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.