PHPackages                             jumplink/jade.php - 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. jumplink/jade.php

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

jumplink/jade.php
=================

HAML-like template engine for PHP 5.3

1.0.0(10y ago)3421MITPHPPHP &gt;=5.3.0

Since Oct 5Pushed 9y ago3 watchersCompare

[ Source](https://github.com/JumpLink/jade.php)[ Packagist](https://packagist.org/packages/jumplink/jade.php)[ Docs](https://github.com/JumpLink/jade.php)[ RSS](/packages/jumplink-jadephp/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Jade.php
========

[](#jadephp)

Jade.php adds inline PHP scripting support to the [Jade](http://jade-lang.com) template compiler.

Implementation details
----------------------

[](#implementation-details)

The fork is a complete rewrite, all the code is ported from the original jade project.

All the features from the original are supported but undertested, including inheritance and mixins.

Syntax
------

[](#syntax)

See [original Jade Docs](https://github.com/visionmedia/jade#readme).

Examples
--------

[](#examples)

### Render

[](#render)

```
namespace Jade;
require __DIR__ . '/vendor/autoload.php';
$jade = new Jade('/tmp', true);
echo $jade->render('index.jade');
```

### Cache with Variables

[](#cache-with-variables)

```
namespace Jade;
require __DIR__ . '/vendor/autoload.php';
$jade = new Jade('/tmp', true);
$title = "Hello World";
$header = "this is append";
require $jade->cache('index.jade');
```

### Try out the Example in this Repository

[](#try-out-the-example-in-this-repository)

```
git clone https://github.com/JumpLink/jade.php.git
cd jade.php/example
php -S localhost:8000
xdg-open http://localhost:8000/main.php
xdg-open http://localhost:8000/variables.php

```

Tests
-----

[](#tests)

Note: Tests need to be fixed!

```
git clone https://github.com/JumpLink/jade.php.git
cd jade.php
composer install
php vendor/bin/phpunit src/tests/EachTest.php

```

Notes
-----

[](#notes)

Please check the git commit history for the authoritative list of contributors.

###  Health Score

29

—

LowBetter than 63% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

3820d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/645b75d0f71cf189a3d7b76a422f79198f8fac81aa6f5974c7e8e566f5931cac?d=identicon)[JumpLink](/maintainers/JumpLink)

---

Top Contributors

[![everzet](https://avatars.githubusercontent.com/u/30813?v=4)](https://github.com/everzet "everzet (75 commits)")[![andreasnrb](https://avatars.githubusercontent.com/u/123857?v=4)](https://github.com/andreasnrb "andreasnrb (38 commits)")[![sisoftrg](https://avatars.githubusercontent.com/u/492146?v=4)](https://github.com/sisoftrg "sisoftrg (26 commits)")[![hackaugusto](https://avatars.githubusercontent.com/u/310139?v=4)](https://github.com/hackaugusto "hackaugusto (14 commits)")[![s4msung](https://avatars.githubusercontent.com/u/58741?v=4)](https://github.com/s4msung "s4msung (14 commits)")[![peniar](https://avatars.githubusercontent.com/u/36135402?v=4)](https://github.com/peniar "peniar (12 commits)")[![JumpLink](https://avatars.githubusercontent.com/u/1073989?v=4)](https://github.com/JumpLink "JumpLink (12 commits)")[![lukegb](https://avatars.githubusercontent.com/u/246745?v=4)](https://github.com/lukegb "lukegb (6 commits)")[![DJRanger](https://avatars.githubusercontent.com/u/212247?v=4)](https://github.com/DJRanger "DJRanger (5 commits)")[![fcrosfly](https://avatars.githubusercontent.com/u/1575457?v=4)](https://github.com/fcrosfly "fcrosfly (5 commits)")[![ryunhe](https://avatars.githubusercontent.com/u/920604?v=4)](https://github.com/ryunhe "ryunhe (4 commits)")[![antonrez89](https://avatars.githubusercontent.com/u/1327258?v=4)](https://github.com/antonrez89 "antonrez89 (3 commits)")[![hkjels](https://avatars.githubusercontent.com/u/339547?v=4)](https://github.com/hkjels "hkjels (1 commits)")[![sadjow](https://avatars.githubusercontent.com/u/177525?v=4)](https://github.com/sadjow "sadjow (1 commits)")[![sheershoff](https://avatars.githubusercontent.com/u/1510318?v=4)](https://github.com/sheershoff "sheershoff (1 commits)")

---

Tags

templateminificationjade

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k33.5M157](/packages/phpoffice-phpword)[pug-php/pug

HAML-like template engine for PHP

392377.9k46](/packages/pug-php-pug)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

418133.6M38](/packages/rize-uri-template)[phug/phug

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

66286.4k9](/packages/phug-phug)[talesoft/tale-jade

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

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

HAML-like template engine for CodeIgniter

211.7k](/packages/ci-pug-ci-pug)

PHPackages © 2026

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