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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ryangjchandler/phiki

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

Syntax highlighting using TextMate grammars in PHP.

v2.2.0(3mo ago)3681.1k↑126.7%16[5 issues](https://github.com/phikiphp/phiki/issues)[1 PRs](https://github.com/phikiphp/phiki/pulls)MITPHPPHP ^8.2

Since Oct 5Pushed 3mo 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 today

READMEChangelog (10)Dependencies (27)Versions (65)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

55

—

FairBetter than 97% of packages

Maintenance81

Actively maintained with recent releases

Popularity39

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 ~37 days

Total

65

Last Release

94d 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.8k543.8M20.1k](/packages/laravel-framework)[illuminate/contracts

The Illuminate Contracts package.

706130.3M13.4k](/packages/illuminate-contracts)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[phiki/phiki

Syntax highlighting using TextMate grammars in PHP.

3693.8M57](/packages/phiki-phiki)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

378604.0k104](/packages/flow-php-etl)

PHPackages © 2026

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