phiki / phiki
Syntax highlighting using TextMate grammars in PHP.
Fund package maintenance!
ryangjchandler
Other
Installs: 126 611
Dependents: 6
Suggesters: 1
Security: 0
Stars: 297
Watchers: 2
Forks: 13
Open Issues: 4
Requires
- php: ^8.2
- ext-mbstring: *
- league/commonmark: ^2.5.3
- psr/simple-cache: ^3.0
Requires (Dev)
- illuminate/support: ^11.45
- laravel/pint: ^1.18.1
- orchestra/testbench: ^9.15
- pestphp/pest: ^3.5.1
- phpstan/extension-installer: ^1.4.3
- phpstan/phpstan: ^2.0
- symfony/var-dumper: ^7.1.6
- 2.x-dev
- v2.0.0
- v2.0.0-beta7
- v2.0.0-beta6
- v2.0.0-beta5
- v2.0.0-beta4
- v2.0.0-beta3
- v2.0.0-beta2
- v2.0.0-beta1
- v2.0.0-alpha11
- v2.0.0-alpha10
- v2.0.0-alpha9
- v2.0.0-alpha8
- v2.0.0-alpha7
- v2.0.0-alpha6
- v2.0.0-alpha5
- v2.0.0-alpha4
- v2.0.0-alpha3
- v2.0.0-alpha2
- v2.0.0-alpha1
- 1.x-dev
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
This package is auto-updated.
Last update: 2025-09-02 18:01:09 UTC
README
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
- Ryan Chandler
- Shiki for API inspiration and TextMate grammar files via
tm-grammars
andtm-themes
. vscode-textmate
for guiding the implementation of the internal tokenizer.