phug / compiler
Pug (ex-Jade) compiler for PHP, HTML template engine structured by indentation
2.0.1
2026-03-15 18:02 UTC
Requires
- php: >=5.5.0
- phug/dependency-injection: ^1.1.2 || ^2.0
- phug/formatter: ^0.5.50 || ^1.0 || ^2.0
- phug/parser: ^0.5.0 || ^1.0 || ^2.0
- phug/util: ^0.4.0 || ^1.0 || ^2.0
This package is auto-updated.
Last update: 2026-05-17 22:25:35 UTC
README
What is Phug Compiler?
The Phug compiler get pug string or a pug file then return a PHP compiled template.
Installation
Install via Composer
composer require phug/compiler
Usage
$compiler = new Phug\Compiler($options); $phtml = $compiler->compile($pugInput); //$phtml is the PHP compiled template