phug/compiler

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

Installs: 87 885

Dependents: 5

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 1

Open Issues: 0

pkg:composer/phug/compiler

1.13.0 2023-09-02 10:13 UTC

This package is auto-updated.

Last update: 2025-09-07 21:00:16 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