Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

PHP-Console-Highlighter

> 编程语言
Open source

Highlight PHP code in terminal

6.2K stars0 likes0 views
WebsiteGitHub

About

Highlight PHP code in terminal

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

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

<?php
use JakubOnderka\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);

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHP

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言