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 Angular Js Bundle Laravel Package

miguel/assetic-angular-js-bundle

Integrates AngularJS asset files with the Assetic pipeline, letting PHP applications bundle, filter, and serve Angular scripts through a single configurable bundle rather than manual includes. A small legacy package best suited to older projects already built on Assetic.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy on the template-cache step. The package performs one narrow job: take AngularJS partials (.html files) and emit a JS file that pre-populates $templateCache, so the browser doesn't fire an XHR per directive. That is roughly 50 lines of globbing, escaping, and $templateCache.put(...) generation. This assessment should push the decision toward "build in-house" or "use a maintained JS build-tool plugin," not "add a dependency."
  • Asset-pipeline consolidation. Adopting it commits you to Assetic as the frontend build layer. That is a roadmap decision, not a feature decision: it determines whether your team stays on a PHP-side asset compiler or moves to a JS-native toolchain. Frame this explicitly when scoping the work.
  • Legacy platform triage. This is a Symfony bundle, not a Laravel package — it hooks into symfony/assetic-bundle, which is itself abandoned. If the question is "can we use this in our Laravel app?", the answer is no, and the real decision is about which stack the legacy surface actually runs on.
  • Technical-debt prioritization. AngularJS reached end-of-life in December 2021. Any ticket that adds this filter should be filed as maintenance on a frozen codebase, and should be paired with a migration estimate — not treated as a forward-looking investment.
  • Supply-chain acceptance. 0 stars, 0 dependents, no release history, single maintainer. This is an unvetted dependency. The decision it drives is whether your policy permits unreviewed third-party code in the build (not runtime) path — and, if so, whether it must be vendored and pinned.
  • Scope check on "is this a feature?" It is not user-visible. There is no experiment, no metric, and no A/B test here. The only measurable outcome is a reduction in template XHRs and TTI on first render — worth quantifying before committing engineering time.

When to Consider This Package

Adopt only when all of the following hold:

  • The application is a Symfony 2.x/3.x app already compiling assets through Assetic, with the bundle wiring in place.
  • The frontend is AngularJS 1.x, the feature set is frozen, and the team has explicitly chosen to keep the legacy UI alive rather than migrate.
  • The number of templates is large enough that per-template XHRs are a measured performance problem (roughly dozens or more, or deep nested routing).
  • You are willing to vendor the code into your repo and treat it as internal, because upstream maintenance cannot be assumed.

Look elsewhere — or build the ~50-line equivalent — when:

  • You are on Laravel. Laravel has no Assetic integration; use Vite/Mix plus laravel-elixir-angular-templatecache or the equivalent, or inline <script type="text/ng-template"> blocks for small template counts.
  • You are on Symfony 4+. Assetic support was removed; the maintained community path is Webpack Encore with ngtemplate-loader or grunt-angular-templates / gulp-angular-templatecache in a JS build step.
  • You are starting anything new. AngularJS is EOL; the correct decision is a framework migration, not a template-cache filter.
  • Template count is small (under ~10). Inline ng-template scripts are simpler, cacheable, and dependency-free.
  • Your security or dependency policy forbids unmaintained packages — which is the default at most organizations.

How to Pitch It (Stakeholders)

For executives: This is a small, MIT-licensed utility that bundles AngularJS HTML templates into the JavaScript payload so pages render faster. It is not a strategic component and it is not maintained — zero stars, zero downstream users, no releases. The recommendation is not to adopt it as a dependency. The cost of ownership (an abandoned Assetic and an end-of-life AngularJS) exceeds the cost of reproducing the functionality in-house, which is a few hours of engineering. There is no budget ask here beyond that.

For engineering: The package is a Symfony Assetic filter, so it is not applicable to a Laravel codebase. Where a template-cache step is genuinely needed, implement it in the existing JS build (Webpack/Vite/Encore) with a maintained loader, or write a local filter — glob the partials, escape the HTML, emit $templateCache.put(path, html). Either route gives you the same runtime artifact with a dependency you control. If the legacy Symfony/AngularJS app must stay up temporarily, vendor this code, pin it, and log it as tracked technical debt with an owner and a migration target date.

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