PHPackages                             phug/lexer - 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. [Templating &amp; Views](/categories/templating)
4. /
5. phug/lexer

ActiveLibrary[Templating &amp; Views](/categories/templating)

phug/lexer
==========

Pug (ex-Jade) lexer for PHP, HTML template engine structured by indentation

2.0.1(3mo ago)495.3k↓21.4%2MITPHPPHP &gt;=5.5.0

Since Dec 28Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/phug-php/lexer)[ Packagist](https://packagist.org/packages/phug/lexer)[ Docs](http://phug-lang.com)[ GitHub Sponsors](https://github.com/kylekatarnls)[ Fund](https://opencollective.com/pug-php)[ RSS](/packages/phug-lexer/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (4)Versions (151)Used By (2)

Phug Lexer
==========

[](#phug-lexer)

What is Phug Lexer?
-------------------

[](#what-is-phug-lexer)

The Phug Lexer utilizes the [Phug Reader](https://github.com/phug-php/reader) to scan Pug code and turn it into a generator of tokens.

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

[](#installation)

Install via Composer

```
composer require phug/lexer
```

Usage
-----

[](#usage)

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance80

Actively maintained with recent releases

Popularity32

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 88.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 ~29 days

Recently: every ~235 days

Total

114

Last Release

110d ago

Major Versions

0.5.34 → 1.0.02019-10-06

1.12.3 → 2.0.02025-03-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/df90c422f521bf26355c3e185a59fe7afb35531af56244dfaec03ee1d0ca6f24?d=identicon)[kylekatarn](/maintainers/kylekatarn)

![](https://www.gravatar.com/avatar/75a80e0830e63c723808d021d3a1648a2643db60f4ac2e40842da05f227f956b?d=identicon)[TorbenKoehn](/maintainers/TorbenKoehn)

---

Top Contributors

[![kylekatarnls](https://avatars.githubusercontent.com/u/5966783?v=4)](https://github.com/kylekatarnls "kylekatarnls (262 commits)")[![TorbenKoehn](https://avatars.githubusercontent.com/u/1403556?v=4)](https://github.com/TorbenKoehn "TorbenKoehn (35 commits)")

---

Tags

phplexerhtmltemplatejadeviewsrenderpugphtmlpresentationdialectphug

### Embed Badge

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

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

###  Alternatives

[phug/phug

Pug (ex-Jade) facade engine for PHP, HTML template engine structured by indentation

66301.0k14](/packages/phug-phug)[talesoft/tale-pug

A clean, lightweight and easy-to-use templating engine for PHP based on Pug, formerly Jade

319.5k3](/packages/talesoft-tale-pug)[talesoft/tale-jade

A clean, lightweight and easy-to-use templating engine for PHP based on Jade/Pug

8819.3k5](/packages/talesoft-tale-jade)[figdice/figdice

Template Engine, XML-centric and attribute-driven

212.4k1](/packages/figdice-figdice)

PHPackages © 2026

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