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

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

phug/phug
=========

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

2.0.1(2mo ago)67292.2k↓25.6%4[3 issues](https://github.com/phug-php/phug/issues)9MITPHPPHP ^7.1 || ^8.0CI passing

Since Jun 25Pushed 2mo ago7 watchersCompare

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

READMEChangelog (10)Dependencies (26)Versions (51)Used By (9)

Phug
====

[](#phug)

[![Latest Stable Version](https://camo.githubusercontent.com/73e44b4cf150b5e6cb69be4906c7b0e9802dc484ec804e83721c141ff3d2d1d9/68747470733a2f2f706f7365722e707567782e6f72672f706875672f706875672f762f737461626c652e706e67)](https://packagist.org/packages/phug/phug)[![Monthly Downloads](https://camo.githubusercontent.com/19fdd041ddd3fb7eb70c91d16e3754e6730f62e07c5f7e28872fb0b097c4a02b/68747470733a2f2f706f7365722e707567782e6f72672f706875672f706875672f642f6d6f6e74686c79)](https://packagist.org/packages/phug/phug)[![Tests](https://github.com/phug-php/phug/actions/workflows/tests.yml/badge.svg)](https://github.com/phug-php/phug/actions/workflows/tests.yml)[![Test Coverage](https://camo.githubusercontent.com/1067f2e806ec37eb70af8e0a9e7ce10f3d94cdcf55a65aead7873f298d2c206c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f706875672d7068702f706875672f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/phug-php/phug/coverage)[![Code Climate](https://camo.githubusercontent.com/c571ae5fdd294d012d7fa800c2fcab68295080d56ab4d47a41714cbfc8531c98/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f706875672d7068702f706875672f6261646765732f6770612e737667)](https://codeclimate.com/github/phug-php/phug)[![StyleCI](https://camo.githubusercontent.com/77fc4d9217e4d0a9a6dce406a235f878eab1087f7ddad1d7fa051aacebd0c6b9/68747470733a2f2f7374796c6563692e696f2f7265706f732f37343336303834342f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/74360844)

[Detailed status](https://gist.github.com/kylekatarnls/8720155b06b016f8128ff511b8695532)

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

[](#what-is-phug)

Phug is the PugJS Template Engine for PHP.

Not just a port. It's written from scratch as a native PHP template engine.

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

[](#documentation)

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance86

Actively maintained with recent releases

Popularity47

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 99.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 ~70 days

Recently: every ~235 days

Total

46

Last Release

64d ago

Major Versions

0.3.2 → 1.0.02019-10-07

1.13.0 → 2.0.02026-03-07

PHP version history (2 changes)0.1.0PHP &gt;=5.5.0

2.0.0PHP ^7.1 || ^8.0

### 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 (393 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")[![dealfonso](https://avatars.githubusercontent.com/u/10501975?v=4)](https://github.com/dealfonso "dealfonso (1 commits)")

---

Tags

hacktoberfestphppugtemplatetemplate-enginephphtmltemplatecompilerjadeviewsrenderpugphtmlpresentationdialectphug

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[talesoft/tale-pug

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

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

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

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

Template Engine, XML-centric and attribute-driven

222.4k1](/packages/figdice-figdice)

PHPackages © 2026

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