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

Abandoned → [pug-php/pug](/?search=pug-php%2Fpug)ArchivedLibrary[Templating &amp; Views](/categories/templating)

kylekatarnls/jade-php
=====================

HAML-like template engine for PHP

3.3.1(6y ago)7077.2k13[1 issues](https://github.com/kylekatarnls/jade-php/issues)4MITPHPPHP &gt;=5.5.0

Since Mar 13Pushed 6y ago9 watchersCompare

[ Source](https://github.com/kylekatarnls/jade-php)[ Packagist](https://packagist.org/packages/kylekatarnls/jade-php)[ Docs](https://github.com/pug-php/pug)[ RSS](/packages/kylekatarnls-jade-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (5)Versions (101)Used By (4)

This repository now lives on

[![](https://camo.githubusercontent.com/230f53f334e344931a978ca0cef89f19ea6ded6ad4c00219159b5c9ac90c590a/687474703a2f2f7075672e73656c666275696c642e66722f7075672e706e67)](https://camo.githubusercontent.com/230f53f334e344931a978ca0cef89f19ea6ded6ad4c00219159b5c9ac90c590a/687474703a2f2f7075672e73656c666275696c642e66722f7075672e706e67) Pug-php
=====================================================================================================================================================================================================================================================================================================================================================

[](#-pug-php)

[![Latest Stable Version](https://camo.githubusercontent.com/508ffda2e9ff8dd378dc0e4a80b81360126d525a79a6348f78d38b8894e29e41/68747470733a2f2f706f7365722e707567782e6f72672f7075672d7068702f7075672f762f737461626c652e706e67)](https://packagist.org/packages/pug-php/pug)[![Monthly Downloads](https://camo.githubusercontent.com/59ca5167e2e7fb8e5b279b52507e68d51b3663f32b6b2362a62a01954621758d/68747470733a2f2f706f7365722e707567782e6f72672f7075672d7068702f7075672f642f6d6f6e74686c79)](https://packagist.org/packages/pug-php/pug)[![License](https://camo.githubusercontent.com/0a5a6d7e22cca56a5a06141f045194f05068a698c7489b9453465ddd768589bf/68747470733a2f2f706f7365722e707567782e6f72672f7075672d7068702f7075672f6c6963656e7365)](https://packagist.org/packages/pug-php/pug)[![Build Status](https://camo.githubusercontent.com/3d543aa18fee383b75a10fb8fc265425e8211ef95ac4d4899ad93fccf37ebd56/68747470733a2f2f7472617669732d63692e6f72672f7075672d7068702f7075672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pug-php/pug)[![StyleCI](https://camo.githubusercontent.com/b1c4304987340121cc6d1daa4304b10746013b985a7204d5bed8492e41a12224/68747470733a2f2f7374796c6563692e696f2f7265706f732f35393031303939392f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/59010999)[![Test Coverage](https://camo.githubusercontent.com/0792999064bea04267b4f54923bde12f2932c5a0bf72f93cabe8690cb4786065/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7075672d7068702f7075672f6261646765732f636f7665726167652e737667)](https://codecov.io/github/pug-php/pug?branch=master)[![Code Climate](https://camo.githubusercontent.com/1622cebdb1394122c3367377a9b521dd203541a82f30b0646f58603670e6e229/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7075672d7068702f7075672f6261646765732f6770612e737667)](https://codeclimate.com/github/pug-php/pug)[![Dependencies](https://camo.githubusercontent.com/656b20f3ab8c570c017f96b80127439759d4d77c374898f70151c8dbcacad526/68747470733a2f2f746964656c6966742e636f6d2f6261646765732f6769746875622f7075672d7068702f707567)](https://tidelift.com/subscription/pkg/packagist-pug-php-pug?utm_source=packagist-pug-php-pug&utm_medium=referral&utm_campaign=readme)

**Pug-php** adds inline PHP scripting support to the [Pug](https://pugjs.org) template compiler. Since version 3, it uses **Phug**, a very customizable Pug template engine made by the **tale-pug** and **pug-php** developers as the new PHP Pug engine reference.

##### [Official Phug documentation](https://www.phug-lang.com/)

[](#official-phug-documentation)

##### [See Pug-php demo](https://pug-demo.herokuapp.com/)

[](#see-pug-php-demo)

##### [Get supported pug-php/pug with the Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-pug-php-pug?utm_source=packagist-pug-php-pug&utm_medium=referral&utm_campaign=readme)

[](#get-supported-pug-phppug-with-the-tidelift-subscription)

Install
-------

[](#install)

First you need composer if you haven't yet:

Then run:

```
composer require pug-php/pug
```

Pug in your favorite framework
------------------------------

[](#pug-in-your-favorite-framework)

Phalcon:

Symfony:

Laravel:

CodeIgniter:

Yii 2:

Slim 3:

Zend Expressive:

Use
---

[](#use)

```
