PHPackages                             ryangjchandler/phiki - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ryangjchandler/phiki

ActiveLibrary

ryangjchandler/phiki
====================

Syntax highlighting using TextMate grammars in PHP.

v2.1.1(2mo ago)358511—0%16[2 issues](https://github.com/phikiphp/phiki/issues)[1 PRs](https://github.com/phikiphp/phiki/pulls)MITPHPPHP ^8.2

Since Oct 5Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/phikiphp/phiki)[ Packagist](https://packagist.org/packages/ryangjchandler/phiki)[ GitHub Sponsors](https://github.com/sponsors/ryangjchandler)[ Fund](https://buymeacoffee.com/ryangjchandler)[ RSS](/packages/ryangjchandler-phiki/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (64)Used By (0)

[![Phiki](./art/banner.png)](./art/banner.png)

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](https://shiki.style/), 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`](https://github.com/microsoft/vscode-textmate) which is the powerhouse of a package behind Visual Studio Code, Shiki, and others.

Installation
------------

[](#installation)

Install Phiki via Composer:

```
composer require phiki/phiki
```

Documentation
-------------

[](#documentation)

For more information on how to integrate Phiki into your application, please [visit the official documentation](https://phiki.dev).

Support my work
---------------

[](#support-my-work)

If you find Phiki useful, please consider supporting me through [GitHub Sponsors](https://github.com/sponsors/ryangjchandler) or [Buy me a Coffee](https://buymeacoffee.com/ryangjchandler).

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

Credits
-------

[](#credits)

- [Ryan Chandler](https://github.com/ryangjchandler)
- [Shiki](https://shiki.style/) for API inspiration and TextMate grammar files via [`tm-grammars` and `tm-themes`](https://github.com/shikijs/textmate-grammars-themes).
- [`vscode-textmate`](https://github.com/microsoft/vscode-textmate) for guiding the implementation of the internal tokenizer.

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 93.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Recently: every ~45 days

Total

64

Last Release

61d ago

Major Versions

v0.3.2 → v1.0.02025-01-25

v1.1.6 → v2.0.0-alpha12025-08-17

1.x-dev → v2.0.0-alpha62025-08-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/568d485d441c691b0358b9091254a6a671fef8f76b73f28af1180ad568d142b2?d=identicon)[ryangjchandler](/maintainers/ryangjchandler)

---

Top Contributors

[![ryangjchandler](https://avatars.githubusercontent.com/u/41837763?v=4)](https://github.com/ryangjchandler "ryangjchandler (191 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (3 commits)")[![SRWieZ](https://avatars.githubusercontent.com/u/1408020?v=4)](https://github.com/SRWieZ "SRWieZ (3 commits)")[![bogdancondorachi](https://avatars.githubusercontent.com/u/39380741?v=4)](https://github.com/bogdancondorachi "bogdancondorachi (1 commits)")[![AhmedAlaa4611](https://avatars.githubusercontent.com/u/92916738?v=4)](https://github.com/AhmedAlaa4611 "AhmedAlaa4611 (1 commits)")[![nimah79](https://avatars.githubusercontent.com/u/20343056?v=4)](https://github.com/nimah79 "nimah79 (1 commits)")[![riasvdv](https://avatars.githubusercontent.com/u/3626559?v=4)](https://github.com/riasvdv "riasvdv (1 commits)")[![rodrigopedra](https://avatars.githubusercontent.com/u/5470108?v=4)](https://github.com/rodrigopedra "rodrigopedra (1 commits)")[![nicoverbruggen](https://avatars.githubusercontent.com/u/3715845?v=4)](https://github.com/nicoverbruggen "nicoverbruggen (1 commits)")[![avosalmon](https://avatars.githubusercontent.com/u/7438395?v=4)](https://github.com/avosalmon "avosalmon (1 commits)")[![benbjurstrom](https://avatars.githubusercontent.com/u/12499093?v=4)](https://github.com/benbjurstrom "benbjurstrom (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ryangjchandler-phiki/health.svg)

```
[![Health](https://phpackages.com/badges/ryangjchandler-phiki/health.svg)](https://phpackages.com/packages/ryangjchandler-phiki)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k509.9M17.0k](/packages/laravel-framework)[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[phiki/phiki

Syntax highlighting using TextMate grammars in PHP.

3573.0M23](/packages/phiki-phiki)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

7228.4k](/packages/n1ebieski-ksef-php-client)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
