php-parallel-lint / php-console-highlighter
Highlight PHP code in terminal
Installs: 27 650 332
Dependents: 603
Suggesters: 6
Security: 0
Stars: 89
Watchers: 2
Forks: 6
Open Issues: 3
pkg:composer/php-parallel-lint/php-console-highlighter
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
Replaces
- dev-master
- v1.0.0
- v0.5
- v0.4
- v0.3.2
- v0.3.1
- 0.3
- 0.2
- 0.1
- dev-feature/dependabot-every-two-weeks
- dev-feature/README-move-badges-up
- dev-feature/ghactions-do-not-persist-credentials
- dev-dependabot/github_actions/actions/checkout-6.0.0
- dev-dependabot/github_actions/action-runners-73dc52d6a4
- dev-feature/ghactions-update-for-php-8.5-release
This package is auto-updated.
Last update: 2025-12-08 19:33:37 UTC
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 PHP_Parallel_Lint\PhpConsoleHighlighter\Highlighter; require __DIR__ . '/vendor/autoload.php'; $highlighter = new Highlighter(new ConsoleColor()); $fileContent = file_get_contents(__FILE__); echo $highlighter->getWholeFile($fileContent);