PHPackages                             pmg/twig-webpack - 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. pmg/twig-webpack

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

pmg/twig-webpack
================

A Twig extension to make working with webpack a bit easier

1.1.0(9y ago)29.9k[1 issues](https://github.com/AgencyPMG/twig-webpack/issues)[1 PRs](https://github.com/AgencyPMG/twig-webpack/pulls)MITPHPPHP ~5.6|~7.0

Since Aug 10Pushed 6y ago6 watchersCompare

[ Source](https://github.com/AgencyPMG/twig-webpack)[ Packagist](https://packagist.org/packages/pmg/twig-webpack)[ RSS](/packages/pmg-twig-webpack/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (5)Used By (0)

Twig + Webpack
==============

[](#twig--webpack)

This is a small set of libraries and a Symfony bundle for easily integrating the webpack dev server into your Twig templates.

Usage in Twig
-------------

[](#usage-in-twig)

```
{% webpack %}

{% endwebpack %}
```

If webpack is in dev mode (see below), the `asset(...)` call is overridden to point to the webpack dev server. Additionally the webpack [dev server JS](https://webpack.github.io/docs/webpack-dev-server.html#inline-mode-in-html)is added above your scripts to provide auto/hot reloading.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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 ~186 days

Total

2

Last Release

3424d ago

### Community

Maintainers

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

---

Top Contributors

[![chrisguitarguy](https://avatars.githubusercontent.com/u/1010392?v=4)](https://github.com/chrisguitarguy "chrisguitarguy (12 commits)")

---

Tags

bundlephpsymfonysymfony-bundletwigtwig-extension

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pmg-twig-webpack/health.svg)

```
[![Health](https://phpackages.com/badges/pmg-twig-webpack/health.svg)](https://phpackages.com/packages/pmg-twig-webpack)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)

PHPackages © 2026

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