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

Assetic Injector Bundle Laravel Package

troopers/assetic-injector-bundle

A Symfony bundle for Assetic that makes it easy to inject CSS and JavaScript assets into templates. Register assets from bundles or services and keep front-end dependencies organized without editing every template.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Shared-asset strategy (global vs. per-page): This package exists to answer a narrow but real product question — "do we declare a global bundle of JS/CSS once and guarantee it appears on every page, or do we let each template own its asset list?" Adopting it is a decision to centralize the design-system baseline (reset CSS, analytics, header/footer scripts) in configuration rather than in templates, which reduces drift across a large template surface.
  • Build vs. buy vs. build-it-ourselves: The capability is small enough (inject a configured list of assets into rendered output) that the honest comparison is against a ~20-line Twig include/partial or a single entrypoint in a bundler — not against a commercial product. This package only wins if the team is already inside an Assetic-based Symfony app and wants zero code.
  • Roadmap and modernization sequencing: Low stars (19), zero dependents, and a last release in May 2017 make this a useful signal item in a dependency review — evidence that an asset pipeline generation is end-of-life and belongs in the modernization backlog rather than the current sprint.
  • Framework fit: This is a Symfony bundle, not a Laravel package. For a Laravel roadmap, evaluating it is itself a decision point: the correct Laravel answer is Vite via laravel-vite-plugin and the @vite directive, so this package's main product value is as a negative reference in a build-vs-adopt comparison.
  • Release-gating and dependency governance: Gives the PM a concrete input for a vendor/dependency scorecard (maintenance status, adoption, license, ecosystem health) that can be reused to triage the rest of the dependency tree.
  • Legacy support scoping: If the answer is "we still run it," that decision defines a support window, a pinned-version policy, and a fork contingency — real commitments that belong in a roadmap, not in a code review comment.

When to Consider This Package

Consider it only when all of the following hold:

  • The application is a Symfony 2.x/3.x codebase already using Assetic, and this bundle is already installed or is a drop-in for an existing pattern.
  • You need a single global list of JS/CSS injected across many templates and want it configured centrally rather than duplicated in every template.
  • There is no front-end build step and adding Webpack Encore, AssetMapper, or Vite is out of scope for the current milestone.
  • Migration cost genuinely exceeds the benefit within the planning horizon, and you accept unmaintained code (last release 2017) with a fork-and-pin fallback.

Look elsewhere when:

  • New projects. Assetic itself is deprecated in the Symfony ecosystem; starting here buys an immediate migration.
  • Laravel. Wrong ecosystem — the equivalent decision is laravel-vite-plugin + @vite, or a Blade partial for a shared asset list. Do not vendor a Symfony bundle into a Laravel app.
  • Modern Symfony. Prefer Webpack Encore, Symfony's AssetMapper, or the Vite bundle — all of which give versioning, integrity hashes, and CSP nonces that this bundle does not.
  • You need security or compliance features: SRI, CSP nonce propagation, or per-route conditional loading are out of scope for a 2017-era injector.
  • You need support, patches, or an adoption community. Nineteen stars and zero dependents means you are the maintainer the moment you install it.

How to Pitch It (Stakeholders)

To executives — one line: This is a small, MIT-licensed convenience shim from a previous generation of PHP asset tooling; it is unmaintained since 2017 and has essentially no adoption, so it is a maintenance liability, not a strategic dependency. It does not unlock a customer-facing capability — at best it saves a few hours of template wiring. Recommend: no-go for new work; where already present, treat it as migration debt with a named owner and an exit date.

To engineering — the practical framing: The behavior is trivially reproducible with a Twig partial or a single bundler entrypoint, and the underlying Assetic pipeline is end-of-life. If we must keep it for a legacy app, pin the version, fork it internally, and add it to the dependency register with a removal milestone. If we are starting anything new — Laravel or modern Symfony — the correct answer is Vite (or AssetMapper on Symfony), and this package should appear in the comparison as the "do not do this" column.

Recommended decision: Reject for adoption; budget a small, time-boxed migration to Vite/AssetMapper; capture the dependency-health criteria (maintenance recency, dependent count, license) as a reusable gate for future package evaluations.

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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
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