php-parallel-lint/php-console-highlighter
Highlight PHP code in terminal
Package info
github.com/php-parallel-lint/PHP-Console-Highlighter
pkg:composer/php-parallel-lint/php-console-highlighter
v1.0.0
2022-02-18 08:23 UTC
Requires
- php: >=5.3.2
- ext-tokenizer: *
- php-parallel-lint/php-console-color: ^1.0.1
Requires (Dev)
- php-parallel-lint/php-code-style: ^2.0
- php-parallel-lint/php-parallel-lint: ^1.0
- php-parallel-lint/php-var-dump-check: 0.*
- phpunit/phpunit: ^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
MIT 5b4803384d3303cf8e84141039ef56c8a123138d
- Jakub Onderka <acci.woop@acci.cz>
This package is auto-updated.
Last update: 2026-06-05 22:13:33 UTC
README
👁 Downloads this Month
👁 CS
👁 Test
👁 License
👁 Coverage Status
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 PHP_Parallel_Lint\PhpConsoleHighlighter\Highlighter; require __DIR__ . '/vendor/autoload.php'; $highlighter = new Highlighter(new ConsoleColor()); $fileContent = file_get_contents(__FILE__); echo $highlighter->getWholeFile($fileContent);
