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

Require Js Bundle Laravel Package

hearsay/require-js-bundle

HearsayRequireJsBundle integrates RequireJS with Symfony applications, offering configuration for module paths, shims, and dependencies plus Twig helpers to load scripts. It simplifies managing JavaScript modules and optimized RequireJS builds.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Closing the "adopt vs. migrate" question on legacy AMD front ends. This package is best used as inventory evidence, not as a dependency candidate. It tells a PM that an AMD/RequireJS asset pipeline exists somewhere in the portfolio, that its integration layer is archived, and that the correct roadmap item is removal — not extension.
  • Build vs. buy vs. borrow — answered as "neither." If the team needs bundle definitions, an optimized JS build step, and multiple named bundles per app, the maintained, first-party path already exists: Vite via laravel-vite-plugin, or esbuild/Webpack for custom control, with native ES dynamic import() replacing AMD lazy loading. This package does not change that calculus; it confirms it.
  • Sizing a migration ticket with real inputs. Archived repo, 0 dependents, 129 stars, RequireJS itself superseded. That combination means no ecosystem safety net, no upstream security response, and no vendor who will take a call. The PM decision is to budget a time-boxed migration spike, not a feature investment.
  • Correcting a metadata-driven roadmap error. The package description markets itself as Laravel-native ("Artisan command," "publishable configuration"), but the actual artifact is a Symfony2 bundle with Twig extensions and DI wiring — the assessments are consistent on this. The most valuable PM action here is to stop a well-intentioned engineer from adding it to composer.json on the strength of the description alone.
  • Reference material during an AMD-to-ESM migration. The bundle's genuine residual value is its configuration schema — baseUrl, paths, shim, deps, map, waitSeconds. That schema is a usable blueprint for reproducing RequireJS behavior while migrating, and it costs nothing to consult.
  • Not a greenfield decision at all. There is no supported path into a modern Laravel app: no service provider, no package discovery, no Blade parity, and asset-path assumptions built around Symfony's web/ root rather than Laravel's public/. It should not appear on a Laravel roadmap as a candidate dependency under any framing.

When to Consider This Package

  • Almost never for a Laravel product. The package targets Symfony2's bundle, DI, and kernel conventions. "Adopting" it in Laravel means forking and maintaining it ourselves — a build decision wearing a buy decision's clothes.
  • Only defensible case: a frozen legacy Symfony 2.x application already depending on it, in pure maintenance mode, where the goal is "change nothing and keep the build green." Even then: pin the version, document the EOL risk, and put a removal date in the backlog.
  • Look elsewhere when you need asset bundling on Laravel (use laravel-vite-plugin), AMD-style lazy loading (use native ES dynamic import()), a maintained Symfony asset integration (use Webpack Encore or AssetMapper), or any dependency with a security response commitment.
  • Disqualifying signals, each sufficient alone, decisive together: archived repository, zero dependents, PHP 5.x/Symfony 2-era compatibility surface, RequireJS as a superseded module format, and a stack mismatch with our own runtime. Treat these as a stop sign, not a weighted score.
  • Ignore the opportunity score. A middling composite score and a 4.27 "opportunity" signal cannot offset an archived, zero-dependent, out-of-stack artifact. Scores measure latent value in the abstract; PM judgment measures value net of ownership cost, which here is negative.
  • Consider only as reference material when reverse-engineering an existing AMD module graph during a migration and you want to see how a prior integration wired paths and shims.

How to Pitch It (Stakeholders)

For executives: This is an archived Symfony2 bundle for RequireJS with 129 stars and no downstream dependents. Its own description advertises Laravel features it does not actually implement — there is no service provider and no Laravel integration path — so it cannot be adopted without us forking and owning it. It sits on a module technology the industry has moved past and receives no maintenance or security updates. Recommendation: do not adopt. If it appears anywhere in our code, reclassify it as technical debt with a scheduled removal date rather than a platform to extend.

For engineering: No integration path into Laravel — this is Symfony2 bundle wiring, so "adopting" means becoming the maintainer. RequireJS/AMD has been superseded by ES modules; our default is Vite via laravel-vite-plugin, with esbuild or Webpack where we need custom control. Do not add it to composer.json; expect dependency and autoload conflicts from its Symfony2-era constraints if you try. If a legacy Symfony2/RequireJS system exists, isolate it during migration, map the module definitions to ES modules, validate behind a feature flag in staging, then decommission. The bundle's configuration schema is worth reading as a blueprint; its code is not worth porting.

Bottom line: Low practical opportunity despite an above-average opportunity score — the package is out of maintenance, out of stack, and out of date on its own technology. It supports a "migrate away" decision, not an adoption decision. Recommended ask: one time-boxed migration spike, funded from existing legacy-maintenance budget, with no new dependency introduced.

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.
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox