Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Webpack Bundle Laravel Package

freshheads/webpack-bundle

Freshheads WebpackBundle integrates Webpack-built assets with Symfony, making it easier to reference compiled JavaScript and CSS from templates and keep frontend assets in sync with your application.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Asset-delivery feature decisions: whether the templating layer (not controllers or config) should be the single place that resolves webpack entry points to their hashed, cache-busted output paths. This bundle pushes that decision into Twig, which affects who owns asset wiring and how easy it is to change CDNs or output directories later.
  • Build vs. buy for glue code: the realistic alternative is a ~50-line Twig extension plus a manifest.json reader written in-house. This package is the "buy" option, but at 2 stars and 0 dependents it remains closer to "borrow a stranger's glue code."
  • Roadmap fit / platform check: this is a Symfony bundle for Twig, not a Laravel package. If the roadmap is a Laravel product, this has no product relevance — Laravel's comparable decisions are handled by Vite (@vite) or laravel-mix. Flag the mismatch before it reaches a backlog.
  • Standardization decisions on Symfony: if the team is choosing between Symfony Webpack Encore's built-in Twig helpers (encore_entry_link_tags, encore_entry_script_tags) and a standalone bundle, this is a candidate only for narrow, non-Encore webpack setups (custom manifest.json, multi-entry configs, CDN-hosted assets).
  • Migration/legacy support: potentially relevant when moving off Assetic-style asset path helpers in an older Symfony app, where you want template-level path resolution without adopting the full Encore toolchain.
  • Use cases it genuinely covers: multi-entry webpack configs, environment-specific asset hosts, manifest-based filename resolution, and versioned assets in Twig templates.
  • Runtime-support / upgrade-window decisions (new in 3.1.0): the only change in 3.1.0 is a composer.json constraint update to 7.4|8.0. That is a signal that PHP 8 is now an intended target, but it is a manifest edit, not a verified compatibility matrix — do not treat it as a licence to assume PHP 8.1+/8.2+/8.3 readiness, and do not use it to justify deferring your own dependency-review step.

When to Consider This Package

Adopt only when all of these hold:

  • The application is Symfony (not Laravel) and templates are Twig.
  • The front-end build is webpack producing a manifest, and you are not using Webpack Encore (or you deliberately want to bypass Encore's Twig helpers).
  • The scope is internal tooling or a small, low-risk app where the team is willing and able to vendor or fork the code.
  • You need template-level path resolution quickly and accept that you, not the maintainer, will fix breakage.
  • You can verify the updated PHP constraint yourself: 3.1.0 moves composer.json to 7.4|8.0, which reads as ^7.4 || ^8.0. Confirm whether the maintainer intended "any PHP 8.x" or "8.0 only" before you rely on it for a PHP 8.2/8.3 build.

Look elsewhere when:

  • You're on Laravel. Use Vite or laravel-mix. This bundle is architecturally the wrong tool and adopting it would mean carrying Symfony/Twig dependencies into a Laravel app.
  • You're on Symfony with Encore. Encore already ships the Twig helpers; adding a second asset-path abstraction creates two sources of truth.
  • You're not on webpack. Vite, esbuild, Rollup, or Parcel setups need a different abstraction entirely.
  • Maintenance and supply-chain risk matter. Two stars, zero dependents, and a single-org maintainer history are strong signals of low community scrutiny. 3.1.0 is a one-line manifest change from a first-time contributor — it is evidence of some liveness, not of a maintenance commitment, and it says nothing about Symfony 6/7 compatibility. Anything customer-facing, long-lived, or compliance-relevant should not depend on this.
  • You need support SLAs, documented upgrade paths, or a contributor community. Still none of that exists here. Note the release carries no changelog beyond the composer bump, no test-matrix update, and no Symfony version statement.

How to Pitch It (Stakeholders)

Executives: This is a very small MIT-licensed Symfony bundle with a narrow job — turning webpack asset names into correct, cache-busted paths inside Twig templates. It is not a strategic dependency. Adoption signal remains essentially zero (2 stars, 0 dependents), so treat it as reusable sample code rather than a supported product. The 3.1.0 release is a small composer.json modernisation (PHP 7.4/8.0) from a first-time outside contributor — a mild sign of life, not a change in maturity, support posture, or roadmap. Recommendation stands: do not build roadmap commitments on it; if we need the capability, budget a small amount of engineering time to own it.

Engineering: Scope is limited to Symfony + Twig + a webpack manifest. Version 3.1.0 contains exactly one change — the composer.json PHP constraint update to 7.4|8.0 — with no code, feature, or fix changes and no Symfony version signal. Interpret that as: PHP 8 is now declared supported, but nothing in this release demonstrates it was tested there, and PHP 8.1+ behaviour is still unverified by upstream. Before adopting, compare against Webpack Encore's native Twig helpers — in most Symfony projects those already cover this and are maintained as part of the framework's ecosystem. If we do adopt, plan to fork it, pin it (3.1.0 gives us no reason to move off whatever we pin), and add it to our dependency-review list, because upstream will likely not respond to issues. If the project in question is Laravel, stop here — use Vite and close the evaluation.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle