Search by

phug / compiler

TorbenKoehnkylekatarn

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

2.0.1 2026-03-15 18:02 UTC

This package is auto-updated.

Last update: 2026-08-17 23:02:47 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