PHPackages                             pug-php/pug-assets - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. pug-php/pug-assets

ActiveLibrary[Templating &amp; Views](/categories/templating)

pug-php/pug-assets
==================

Pug template assets manager

1.1.4(5y ago)487.2k↓30%4MITPHPPHP &gt;=5.4

Since Jul 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pug-php/pug-assets)[ Packagist](https://packagist.org/packages/pug-php/pug-assets)[ GitHub Sponsors](https://github.com/kylekatarnls)[ Fund](https://opencollective.com/pug-php)[ RSS](/packages/pug-php-pug-assets/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (8)Versions (12)Used By (4)

Pug-Assets
==========

[](#pug-assets)

[![Latest Stable Version](https://camo.githubusercontent.com/c2bb4b7cff62a047856f10e72d72702c91001ae3d1b4370a65561257f0b26587/68747470733a2f2f706f7365722e707567782e6f72672f7075672d7068702f7075672d6173736574732f762f737461626c652e706e67)](https://packagist.org/packages/pug-php/pug-assets)[![Build Status](https://camo.githubusercontent.com/670e96c517ceed586897b7bb3f825dd6ddd214a748c6f631d1b35984968d51a2/68747470733a2f2f7472617669732d63692e6f72672f7075672d7068702f7075672d6173736574732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pug-php/pug-assets)[![StyleCI](https://camo.githubusercontent.com/6d5f51395d588949f46fd8a43bffda516a06df9dc9cc3f9ca3f923718fd785f8/68747470733a2f2f7374796c6563692e696f2f7265706f732f36333934323639302f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/63942690)[![Test Coverage](https://camo.githubusercontent.com/f959864d16cd51c8fbbbc5480217d1d29bd48ab692365b4aff49c9e5a06789c6/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7075672d7068702f7075672d6173736574732f6261646765732f636f7665726167652e737667)](https://codecov.io/github/pug-php/pug-assets?branch=master)[![Code Climate](https://camo.githubusercontent.com/4c18cff85bbacf766043149b9888f01f0917360c1e7bc6e0b9791b326c730a8c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7075672d7068702f7075672d6173736574732f6261646765732f6770612e737667)](https://codeclimate.com/github/pug-php/pug-assets)

Manage your assets and third-party transpiler (less, stylus, coffee, babel, etc.) and allow you to concat and/or minify them in production environment.

Install
-------

[](#install)

First you need composer if you have'nt yet:

Then in the root directory of your project, open a terminal and enter:

```
composer require pug-php/pug-assets
```

Enable the plugin:

```
use Pug\Assets;
use Pug\Pug;

$pug = new Pug();

// The facade syntax:
Assets::enable($pug);
$pug->render('... minify ...'); // here you can use minfiy, assets or concat keywords to wrap your assets

Assets::disable($pug);
$pug->render('... minify ...'); // here minfiy, assets or concat are simple tags again

// Or the instanciation syntax:
$assets = new Assets($pug);
$pug->render('... minify ...'); // here you can use minfiy, assets or concat keywords to wrap your assets

unset($assets);
$pug->render('... minify ...'); // here minfiy, assets or concat are simple tags again
```

For more information about the concat/minify usage, see

**Pug-Assets** also instal the coffee, react-jsx, stylus, less and markdown pug filters to use them as inline contents.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~217 days

Recently: every ~326 days

Total

9

Last Release

1842d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df90c422f521bf26355c3e185a59fe7afb35531af56244dfaec03ee1d0ca6f24?d=identicon)[kylekatarn](/maintainers/kylekatarn)

---

Top Contributors

[![kylekatarnls](https://avatars.githubusercontent.com/u/5966783?v=4)](https://github.com/kylekatarnls "kylekatarnls (56 commits)")

---

Tags

assetsbabelcoffeeconcatextensionlessminifyphpproductionpugreactstylusuglify

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pug-php-pug-assets/health.svg)

```
[![Health](https://phpackages.com/badges/pug-php-pug-assets/health.svg)](https://phpackages.com/packages/pug-php-pug-assets)
```

###  Alternatives

[bkwld/laravel-pug

Pug view adapter for Laravel

15967.4k2](/packages/bkwld-laravel-pug)[nystudio107/craft-twigpack

Twigpack is a bridge between Twig and webpack, with manifest.json &amp; webpack-dev-server HMR support

97341.4k17](/packages/nystudio107-craft-twigpack)[pug-php/pug-symfony

Pug template engine for Symfony

444.4k](/packages/pug-php-pug-symfony)[ci-pug/ci-pug

HAML-like template engine for CodeIgniter

211.7k](/packages/ci-pug-ci-pug)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
