php-parallel-lint / php-console-highlighter
Highlight PHP code in terminal
Installs: 475 462
Dependents: 200
Suggesters: 2
Security: 0
Stars: 18
Watchers: 1
Forks: 20
Open Issues: 3
Requires
- php: >=5.4.0
- ext-tokenizer: *
- php-parallel-lint/php-console-color: ~0.2
Requires (Dev)
Replaces
README
Highlight PHP code in console (terminal).
Example
Install
Just run the following command to install it:
composer require --dev php-parallel-lint/php-console-highlighter:"0.*"
Usage
<?php use PHP_Parallel_Lint\PhpConsoleColor\ConsoleColor; use JakubOnderka\PhpConsoleHighlighter\Highlighter; require __DIR__ . '/vendor/autoload.php'; $highlighter = new Highlighter(new ConsoleColor()); $fileContent = file_get_contents(__FILE__); echo $highlighter->getWholeFile($fileContent);