evheniy/jquery-bundle
Symfony2 bundle that provides jQuery from Google CDN or a local path, with configurable version, CDN domain, HTML5/legacy script tags, and async loading. Install via Composer and register JqueryBundle in AppKernel.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/{version}/jquery.min.js"> tag from a YAML-configured version string. That is a handful of lines in a base Twig template, a Webpack Encore entry, or a Symfony AssetMapper import. There is no logic, no API, no abstraction worth paying a dependency-management tax for.Consider it only when all of the following hold:
Look elsewhere — or build inline — if any of these are true:
jquery.min.js, covers this with fewer moving parts and no third-party maintenance risk.Practically: the sensible alternative is to vendor a pinned jQuery file or use your framework's asset pipeline. Migrating off this bundle is a small, bounded task — a good candidate for a cleanup ticket rather than a roadmap item.
For executives (one paragraph): This package is a thin configuration wrapper that adds a jQuery <script> tag pointing at Google's CDN. It is a Symfony 2 component — not Laravel — with three GitHub stars, no dependent packages, and no release since 2016, and the Symfony version it targets has been end-of-life for years. Adopting it adds a third-party dependency, an external CDN dependency, and an unmaintained-code finding to our audit, in exchange for functionality we can reproduce in a few lines. Recommendation: do not adopt; replace with a pinned, self-hosted jQuery asset or an entry in our existing build pipeline.
For engineering (the ask): Treat this as a "no" on new usage and a "cleanup" on existing usage. The replacement is trivial — one static file plus a template include, or one line in the asset pipeline — and it removes a runtime CDN call, lets us pin the version in source control, and enables subresource integrity and a stricter Content-Security-Policy. Estimated effort is well under a day per application, with no functional change expected. The main risk is discovering implicit reliance on the CDN-loaded version elsewhere; a quick grep for jquery in templates and a smoke test of the JS-dependent pages will confirm scope.
Framing to avoid: do not present this as "the package is bad." Present it as over-engineered for the problem it solves and abandoned at the same time — the cost is not code quality, it is ownership. Nobody is on the hook for updating this when jQuery or a browser changes, so we would be.
How can I help you explore Laravel packages today?