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.1.0(1mo ago)2100.6k↓38.5%8[1 issues](https://github.com/freshheads/FHWebpackBundle/issues)MITPHPPHP &gt;=8.4

Since Sep 15Pushed 1mo 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 2w ago

READMEChangelog (10)Dependencies (20)Versions (20)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

61

—

FairBetter than 99% of packages

Maintenance82

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~339 days

Total

18

Last Release

41d 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 (6 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

3.1.0PHP &gt;=8.4

### 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)")[![JeroenE2000](https://avatars.githubusercontent.com/u/47849207?v=4)](https://github.com/JeroenE2000 "JeroenE2000 (1 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.3k18.3M430](/packages/easycorp-easyadmin-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M672](/packages/shopware-core)[sylius/sylius

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

8.5k6.0M777](/packages/sylius-sylius)[chameleon-system/chameleon-base

The Chameleon System core.

1029.4k6](/packages/chameleon-system-chameleon-base)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[sulu/sulu

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

1.3k1.4M235](/packages/sulu-sulu)

PHPackages © 2026

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