PHPackages                             phug/ast - 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/ast

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

phug/ast
========

Pug (ex-Jade) language AST system for Phug, HTML template engine structured by indentation

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

Since Dec 28Pushed 3mo ago2 watchersCompare

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

READMEChangelog (10)DependenciesVersions (69)Used By (1)

Phug Ast
========

[](#phug-ast)

What is Phug Ast?
-----------------

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

The Phug Ast contains a baseclass for ASTs as well as some node-related utilities.

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

[](#installation)

Install via Composer

```
composer require phug/ast
```

Usage
-----

[](#usage)

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance80

Actively maintained with recent releases

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~108 days

Recently: every ~234 days

Total

32

Last Release

113d ago

Major Versions

0.1.0 → 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 (38 commits)")

---

Tags

phphtmltemplateastjadeviewsrenderpugphtmlpresentationdialectphug

### Embed Badge

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

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

###  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)
