eloquent/composer-npm-bridge
Composer NPM Bridge lets Composer manage your npm dependencies, installing packages and running build scripts alongside composer install or update. One toolchain, one command, fewer setup steps for Laravel and PHP projects.
composer require/composer update also pull the package's declared npm dependencies — collapsing two install steps into one for downstream consumers.npm install for package-declared JS dependencies, or adopt an existing one?" A 77-star, MIT-licensed, single-purpose plugin is cheap to trial — but see the archived-status caveat below.extra.npm-style declarations) you could standardize on, or deliberately reject in favor of "ship compiled assets, no runtime npm."Consider it only when all of the following hold:
Look elsewhere — strongly preferred — when:
publish tags, spatie/laravel-package-tools). No npm at install time, no plugin, no archived dependency.oomphinc/composer-installers-extender with an asset repository (asset-packagist) for third-party JS libs, or simply run npm/yarn/pnpm in CI. For Laravel specifically, Vite plus committed or CI-built assets is the supported path.Decision rule: adopt only as a short-term, internal, forked-and-pinned bridge while you migrate to shipped assets; do not make it a platform dependency.
Executives: This is a small, MIT-licensed utility that lets a PHP package pull its JavaScript dependencies through Composer, so consumers get PHP and frontend code in one install. The strategic read is cautionary: it is archived and last released in 2020, with 77 GitHub stars and no maintenance path. That makes it a tactical tool, not a platform bet. Recommendation: permit it only as a short-lived, internally forked bridge in non-critical tooling, and fund the migration to shipping pre-built assets — which removes the dependency entirely and reduces install-time and supply-chain risk.
Engineering: The plugin hooks Composer install/update events to install npm dependencies declared by packages. Two consequences to plan for: (1) it executes third-party code in the Composer plugin path and is unmaintained since 2020 — pin a fork, audit it, and treat it as frozen; (2) it introduces a live npm registry dependency at Composer time, so CI needs registry mirroring, lockfile pinning, and offline-build fallbacks. Verify compatibility with our current Composer/PHP/Node versions before committing. Default alternative: packages ship compiled assets and publish them (Laravel publish tags / laravel-package-tools), with npm run in CI — same outcome, no archived plugin, no install-time network calls.
How can I help you explore Laravel packages today?