ryangjchandler/phiki

Syntax highlighting using TextMate grammars in PHP.
1,957 376
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...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

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

418,291,778 609
nunomaduro/collision

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

394,964,158 4,660

Version History

Version Released PHP License
v2.2.1 ^8.2 MIT
v2.2.0 ^8.2 MIT
v2.1.1 ^8.2 MIT
v2.1.0 ^8.2 MIT
v2.0.5 ^8.2 MIT
Pre-releases (18)
Version Released PHP License
v2.0.0-beta7 ^8.2 MIT
v2.0.0-beta6 ^8.2 MIT
v2.0.0-beta5 ^8.2 MIT
v2.0.0-beta4 ^8.2 MIT
v2.0.0-beta3 ^8.2 MIT