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)298.2k↓36.1%7[1 issues](https://github.com/freshheads/FHWebpackBundle/issues)MITPHPPHP &gt;=8.1

Since Sep 15Pushed 2y 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 yesterday

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

40

—

FairBetter than 86% of packages

Maintenance10

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

854d 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://avatars.githubusercontent.com/u/287585?v=4)[Freshheads](/maintainers/freshheads)[@freshheads](https://github.com/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

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[sulu/sulu

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

1.3k1.4M203](/packages/sulu-sulu)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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