phug / renderer
Pug (ex-Jade) renderer for PHP, HTML template engine structured by indentation
2.0.1
2026-03-15 18:02 UTC
Requires
- php: >=5.5.0
- phug/compiler: ^1.2 || ^2.0
- phug/formatter: ^1.8.1 || ^2.0
- phug/util: ^1.5 || ^2.0
- symfony/var-dumper: ^3.4 || ^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0
This package is auto-updated.
Last update: 2026-05-17 22:30:41 UTC
README
What is Phug Renderer?
The Phug renderer get pug string or a pug file then return a markup string.
Installation
Install via Composer
composer require phug/renderer
Usage
$renderer = new Phug\Renderer($options); $html = $renderer->render($pugInput); //$html is now a string of HTML or any other markup according to the formatter you choose (XML, xHTML, etc.)
Security contact information
To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.