PHPackages                             freshheads/webpack-bundle - 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. freshheads/webpack-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

freshheads/webpack-bundle
=========================

A Symfony bundle to create paths to webpack assets in your Twig templates.

3.0.0(2y ago)293.3k↑20.7%7[1 issues](https://github.com/freshheads/FHWebpackBundle/issues)MITPHPPHP &gt;=8.1

Since Sep 15Pushed 1y ago9 watchersCompare

[ Source](https://github.com/freshheads/FHWebpackBundle)[ Packagist](https://packagist.org/packages/freshheads/webpack-bundle)[ RSS](/packages/freshheads-webpack-bundle/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (18)Used By (0)

FHWebpackBundle
===============

[](#fhwebpackbundle)

A Symfony bundle to create paths to webpack assets in your Twig templates. This bundle uses the webpack statistics file to find the newest assets for a given webpack entry.

Installation
------------

[](#installation)

Install with composer:

```
composer require freshheads/webpack-bundle
```

### Register the bundle

[](#register-the-bundle)

```
// config/bundles.php
return [
    // ...
    FH\Bundle\WebpackBundle\FHWebpackBundle::class => [ 'all' => true ]
];
```

Configuration
-------------

[](#configuration)

All configuration options, with default values:

```
fh_webpack:
    stats_filename: stats.json
    # web/document root, assets will be referenced from this path
    web_dir: '%kernel.project_dir%/public'
```

Usage
-----

[](#usage)

### Link webpack files

[](#link-webpack-files)

```

```

### Dump the contents of a webpack file

[](#dump-the-contents-of-a-webpack-file)

```

    {{ webpack_asset_contents('assets/frontend/build', 'email', 'css')|raw }}

```

Requirements
------------

[](#requirements)

This library works with PHP version 8.1 and up.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 50% 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 ~170 days

Recently: every ~125 days

Total

17

Last Release

808d ago

Major Versions

0.1.0 → 1.0.02017-08-07

1.x-dev → 2.0.02022-04-07

2.x-dev → 3.0.02024-03-01

PHP version history (5 changes)0.1.0PHP &gt;=5.5.9

1.3.0PHP ^7.2

1.5.0PHP &gt;=7.3

2.0.0PHP &gt;=7.4

3.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![fruitwasp](https://avatars.githubusercontent.com/u/3208699?v=4)](https://github.com/fruitwasp "fruitwasp (15 commits)")[![bart-van-amelsvoort](https://avatars.githubusercontent.com/u/3480110?v=4)](https://github.com/bart-van-amelsvoort "bart-van-amelsvoort (7 commits)")[![fastnloud](https://avatars.githubusercontent.com/u/4117844?v=4)](https://github.com/fastnloud "fastnloud (7 commits)")[![rikdeuzeman](https://avatars.githubusercontent.com/u/4069311?v=4)](https://github.com/rikdeuzeman "rikdeuzeman (1 commits)")

### Embed Badge

![Health badge](/badges/freshheads-webpack-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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