PHPackages                             phiki/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. phiki/phiki

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

phiki/phiki
===========

Syntax highlighting using TextMate grammars in PHP.

v2.1.1(2mo ago)3573.0M—4.2%16[1 PRs](https://github.com/phikiphp/phiki/pulls)19MITPHPPHP ^8.2

Since Oct 5Pushed 2mo ago3 watchersCompare

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

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

[![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

65

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity62

Solid adoption and visibility

Community32

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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)")[![SRWieZ](https://avatars.githubusercontent.com/u/1408020?v=4)](https://github.com/SRWieZ "SRWieZ (3 commits)")[![benbjurstrom](https://avatars.githubusercontent.com/u/12499093?v=4)](https://github.com/benbjurstrom "benbjurstrom (1 commits)")[![bogdancondorachi](https://avatars.githubusercontent.com/u/39380741?v=4)](https://github.com/bogdancondorachi "bogdancondorachi (1 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (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)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[illuminate/contracts

The Illuminate Contracts package.

705122.9M10.1k](/packages/illuminate-contracts)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

374468.4k51](/packages/flow-php-etl)[gehrisandro/tailwind-merge-php

TailwindMerge for PHP merges multiple Tailwind CSS classes by automatically resolving conflicts between them

1391.5M9](/packages/gehrisandro-tailwind-merge-php)[bakame/laravel-domain-parser

Laravel package to integrate PHP Domain parser.

26534.8k4](/packages/bakame-laravel-domain-parser)[torchlight/engine

The PHP-based Torchlight code annotation and rendering engine.

655.7k4](/packages/torchlight-engine)[shopware/app-php-sdk

Shopware App SDK for PHP

1577.8k1](/packages/shopware-app-php-sdk)

PHPackages © 2026

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