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 Assets Bundle Laravel Package

voltel/webpack-assets-bundle

Integrates webpack-built assets into PHP applications by reading the webpack manifest, resolving hashed file paths, and providing helpers to render script and stylesheet tags. Handy for cache-busting and production deployments with minimal setup.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Framework fit is the first decision. The v1.1.0 surface — Twig functions (print_css_link_tags, print_js_script_tags), services.yaml, and "bundle configuration" — reads as a Symfony bundle, not a Laravel package. Before any roadmap commitment, confirm whether this is intended for a Laravel codebase (Blade, service providers, config/*.php) or whether it is a Symfony/Twig asset helper that only reaches Laravel through a Twig bridge. That determination changes the answer from "adopt" to "not applicable."
  • Templating ergonomics vs. native helpers. If the target app genuinely renders Twig, these two functions replace hand-written <link type="text/stylesheet"> and <script src=""> markup with a single call per template. That is a small but real DX win: fewer copy-paste errors, one place to change tag attributes (defer, crossorigin, integrity) later.
  • Asset URL resolution centralization. The new AssetsTagsPrintService is the actually interesting artifact. It implies asset paths/manifests are resolved server-side rather than hardcoded per template — worth evaluating as the seam where versioning, CDN prefixes, or cache-busting would later live. If that seam is thin, the package is cosmetic; if it is real, it is infrastructure.
  • Build vs. buy. The scope here is ~2 template helpers. Writing equivalent Twig functions in-house is measured in hours, not sprints. Buy only if you already depend on the bundle for other reasons, or if you value upstream maintenance of the tag-attribute defaults over owning ten lines of code.
  • Documentation as a release gate. Two of the five changelog lines are documentation (bundle configuration, new functions). That is a positive signal — configuration docs were previously a gap that blocks onboarding — and it justifies a re-read of the setup path before assigning it to a team.

When to Consider This Package

Adopt when all of the following hold:

  • The application is Symfony with Twig, or Laravel with a Twig rendering layer already in place. In a Blade-only Laravel app, this package has no call site — look elsewhere (Laravel Mix/Vite directives, @vite, asset()).
  • You emit asset tags in multiple templates and want a single, attribute-consistent helper rather than repeated literal markup.
  • You need a server-side hook for asset URL construction (manifest lookup, CDN base, integrity hashes) that templates should not know about.
  • You are comfortable pinning to a v1.x with a five-line changelog — pre-2.0, small surface, thin test coverage added only in this release (tests exist for the new service, not evidently for the whole bundle).

Look elsewhere when:

  • The stack is Blade/Blade-only Laravel — the Twig functions are unreachable without adding a Twig runtime, which is a net-new dependency for two helpers.
  • You need asset compilation, bundling, or minification — this emits tags, it does not build assets. Pair with Vite/Encore/webpack, and do not let stakeholders conflate the two.
  • You require stable, versioned upgrade guarantees or a security-review trail; a first tests-and-docs release is a signal the project is still maturing.

How to Pitch It (Stakeholders)

To executives: This is a small, low-risk PHP template helper — its v1.1.0 release adds two one-line template calls that output CSS and JS tags, plus the configuration documentation that was missing. The realistic value is consistency and a single place to change how assets are referenced, not a capability we lack. My recommendation is to treat it as a convenience dependency, not a platform decision: no budget, no migration, no vendor commitment. One caveat I would flag up front — the release notes point to a Symfony/Twig bundle, so the first question is whether this fits our Laravel stack at all. I would not present it as a Laravel package until engineering confirms.

To engineering: v1.1.0 adds print_css_link_tags and print_js_script_tags Twig functions backed by a new AssetsTagsPrintService (registered via services.yaml), with tests for the service and docs for both bundle configuration and the new functions. Please answer three things before we wire it in: (1) is this Symfony/Twig-only, and if so does our Laravel app have a Twig path or is this a non-starter; (2) does the new service own asset URL/manifest resolution, or is it a thin string-concatenator — the former is worth adopting, the latter we should write ourselves; (3) what is the actual test coverage beyond the new service, since this is the first release with tests at all. If (1) fails, we stop here.

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