phug / compiler
Pug (ex-Jade) compiler for PHP, HTML template engine structured by indentation
Fund package maintenance!
kylekatarnls
Open Collective
Tidelift
Installs: 86 994
Dependents: 5
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=5.5.0
- phug/dependency-injection: ^1.1.2
- phug/formatter: ^0.5.50 || ^1.0
- phug/parser: ^0.5.0 || ^1.0
- phug/util: ^0.4.0 || ^1.0
- dev-master / 1.x-dev
- 1.13.0
- 1.12.3
- 1.12.2
- 1.12.1
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.4.0-beta2
- 1.4.0-beta1
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- 1.0.0-RC3
- 1.0.0-RC.2
- 1.0.0-rc.1
- 0.5.26
- 0.5.25
- 0.5.24
- 0.5.23
- 0.5.22
- 0.5.21
- 0.5.20
- 0.5.19
- 0.5.18
- 0.5.17
- 0.5.16
- 0.5.15
- 0.5.14
- 0.5.13
- 0.5.12
- 0.5.11
- 0.5.10
- 0.5.9
- 0.5.8
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.34
- 0.1.33
- 0.1.32
- 0.1.31
- 0.1.30
- 0.1.29
- 0.1.28
- 0.1.27
- 0.1.26
- 0.1.25
- 0.1.24
- 0.1.23
- 0.1.22
- 0.1.21
- 0.1.20
- 0.1.19
- 0.1.18
- 0.1.17
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-analysis-xgmrM9
- dev-feature/multi-tester-3
- dev-feature/symfony-7
- dev-remotes/pull/109/merge
- dev-remotes/pull/110/merge
- dev-remotes/pull/111/merge
- dev-remotes/pull/113/merge
- dev-remotes/pull/114/merge
- dev-remotes/pull/108/merge
- dev-fix/strict-in-array
- dev-remotes/pull/104/merge
- dev-feature/abstract-token-handler
- dev-feature/duplication-threshold
- dev-remotes/pull/100/merge
- dev-remotes/pull/101/merge
- dev-remotes/pull/102/merge
- dev-remotes/pull/105/merge
- dev-remotes/pull/106/merge
- dev-remotes/pull/107/merge
- dev-remotes/pull/98/merge
- dev-remotes/pull/99/merge
- dev-simplify-split-script
- dev-multitest-php-8
- dev-feature/check-php-8
- dev-feature/issue-69-interpolations-in-comments
- dev-feature/issue-70-disallow-new-line-in-interpolations
- dev-feature/php-8-namespace
This package is auto-updated.
Last update: 2024-12-19 16:41: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