New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ryangjchandler/phiki

Syntax highlighting using TextMate grammars in PHP.
2,023 378
Install
composer require ryangjchandler/phiki
Latest Version:v2.2.1
PHP:^8.2
Older releases:11
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...

651,963,193 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

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

435,097,283 607
nunomaduro/collision

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

407,699,310 4,663

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