ryangjchandler/phiki

Syntax highlighting using TextMate grammars in PHP.
1,857 377
Install
composer require ryangjchandler/phiki
Latest Version:v2.2.1
PHP:^8.2
License:MIT
Last Updated:Jul 22, 2026
Links: GitHub  ·  Packagist
Maintainer: ryangjchandler

Phiki

Phiki is a syntax highlighter written in PHP. It uses TextMate grammar files and Visual Studio Code themes to generate syntax highlighted code for the web.

The name and public API of Phiki is heavily inspired by Shiki, a package that does more or less the same thing in the JavaScript ecosystem. The actual implementation of the package is also heavily inspired by vscode-textmate which is the powerhouse of a package behind Visual Studio Code, Shiki, and others.

Installation

Install Phiki via Composer:

composer require phiki/phiki

Documentation

For more information on how to integrate Phiki into your application, please visit the official documentation.

Support my work

If you find Phiki useful, please consider supporting me through GitHub Sponsors or Buy me a Coffee.

All sponsorships go towards the maintenance and continuous improvement of my open source projects.

Credits

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

404,034,618 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

384,821,166 4,658