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.3K Stars 21 Forks MIT License 63 Commits 0 Opened issues

Description

Highlight PHP code in terminal

Services available

!
?

Need anything else?

Contributors list

# 21,747
PHP
Nette
misp
Shell
38 commits
# 4,196
PHP
Nette
php7
Shell
6 commits
# 1,653
PHP
Laravel
Compose...
framewo...
1 commit
# 13,495
PHP
Symfony
framewo...
templat...
1 commit
# 113,075
Shell
PHP
Sass
psr
1 commit
# 9,751
PHP
timeago
Compose...
Symfony
1 commit
# 12,143
phantom...
Node.js
Koa
apex
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.