Need help with PHP-Console-Highlighter?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

JakubOnderka
6.2K Stars 21 Forks MIT License 63 Commits 0 Opened issues

Description

Highlight PHP code in terminal

Services available

!
?

Need anything else?

Contributors list

# 23,523
PHP
Nette
misp
Shell
38 commits
# 4,349
PHP
Nette
php7
Shell
6 commits
# 103,267
Shell
PHP
Sass
sentry
1 commit
# 12,069
PHP
Symfony
framewo...
templat...
1 commit
# 8,918
PHP
travis
Compose...
Symfony
1 commit
# 11,759
phantom...
Node.js
Koa
apex
1 commit
# 1,565
PHP
Laravel
Compose...
framewo...
1 commit

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.