PHPackages                             peertopark/composer-bower-bridge - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. peertopark/composer-bower-bridge

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

peertopark/composer-bower-bridge
================================

Bower integration for Composer packages.

1.0.0(9y ago)05871MITPHPPHP &gt;=5.3

Since Jan 25Pushed 9y ago2 watchersCompare

[ Source](https://github.com/peertopark/composer-bower-bridge)[ Packagist](https://packagist.org/packages/peertopark/composer-bower-bridge)[ Docs](https://github.com/peertopark/composer-bower-bridge)[ RSS](/packages/peertopark-composer-bower-bridge/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

Composer Bower bridge
=====================

[](#composer-bower-bridge)

*Bower integration for Composer packages.**Based on the on (and shamelessly stolen from) \[eloquent/composer-npm-bridge\]*\[eloquent/composer-npm-bridge\]:

[![Current version image](https://camo.githubusercontent.com/865e1bd65acf7ac9834356b18ff874c1bb6276cc42753293ef79b225dfd66de1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c6f7175656e742f636f6d706f7365722d6e706d2d6272696467652e7376673f7374796c653d666c61742d737175617265 "This project uses semantic versioning")](https://packagist.org/packages/eloquent/composer-npm-bridge)[![Current build status image](https://camo.githubusercontent.com/0b0c87559ef221938fd3c7d01f852a6aa18f559a311cc1f4406f9b6d765f501c/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f656c6f7175656e742f636f6d706f7365722d6e706d2d6272696467652f646576656c6f702e7376673f7374796c653d666c61742d737175617265 "Current build status for the develop branch")](https://travis-ci.org/eloquent/composer-npm-bridge)[![Current coverage status image](https://camo.githubusercontent.com/614df5773130f0c6881ef2b2279129949f59f714edba822674a94d0c5ef84899/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f656c6f7175656e742f636f6d706f7365722d6e706d2d6272696467652f646576656c6f702e7376673f7374796c653d666c61742d737175617265 "Current test coverage for the develop branch")](https://codecov.io/github/eloquent/composer-npm-bridge)

Installation
------------

[](#installation)

- Available as [Composer](http://getcomposer.org/) package [peertopark/composer-bower-bridge](https://packagist.org/packages/peertopark/composer-bower-bridge).

Requirements
------------

[](#requirements)

- The `npm` executable must be available in PATH.

Usage
-----

[](#usage)

To utilize the *Composer NPM bridge*, simply add `eloquent/composer-npm-bridge`to the `require` section of the project's Composer configuration:

```
composer require eloquent/composer-npm-bridge:^3

```

NPM dependencies are specified via a [package.json](https://npmjs.org/doc/json.html) configuration file in the root directory of the Composer package. Source control should be configured to ignore NPM's `node_modules` directory, similar to Composer's `vendor` directory.

How does it work?
-----------------

[](#how-does-it-work)

The *Composer NPM bridge* is a Composer plugin that automatically installs and updates [NPM](https://npmjs.org/) packages whenever the corresponding Composer command is executed. To detect compatible packages, the bridge inspects Composer package configuration information to find packages that directly require the `eloquent/composer-npm-bridge` Composer package itself.

In addition to normal operation, `composer install` will [install](https://npmjs.org/doc/install.html) NPM dependencies for all Composer packages using the bridge. This includes the root package, as well as Composer dependencies. Similarly, `composer update` will [install](https://npmjs.org/doc/install.html) NPM dependencies for all Composer dependencies using the bridge. It will also [update](https://npmjs.org/doc/update.html) and [shrinkwrap](https://npmjs.org/doc/shrinkwrap.html) the NPM dependencies for the root project.

NPM dependencies will be installed exactly as if `npm install` were run from the root directory of the package. This applies even if the package is installed as a dependency.

Caveats
-------

[](#caveats)

Because NPM dependencies are installed underneath the root directory of the Composer package, Composer may complain about working copy changes when the package is installed as a dependency. Source control should be configured to ignore the `node_modules` directory in order to avoid this.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad9f72117401c57d5094b481c9a11ef6204f182214bcf5208075ad38840a3264?d=identicon)[blackleg](/maintainers/blackleg)

---

Top Contributors

[![hectorespert](https://avatars.githubusercontent.com/u/4323228?v=4)](https://github.com/hectorespert "hectorespert (6 commits)")[![BLACKLEG](https://avatars.githubusercontent.com/u/64562250?v=4)](https://github.com/BLACKLEG "BLACKLEG (2 commits)")

---

Tags

plugincomposerpackageBridgeintegrationcomposer-pluginbower

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/peertopark-composer-bower-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/peertopark-composer-bower-bridge/health.svg)](https://phpackages.com/packages/peertopark-composer-bower-bridge)
```

###  Alternatives

[fxp/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

8894.8M41](/packages/fxp-composer-asset-plugin)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M15](/packages/vaimo-composer-patches)[foxy/foxy

Fast, reliable, and secure NPM/Yarn/pnpm bridge for Composer

177287.5k25](/packages/foxy-foxy)[php-forge/foxy

Fast, reliable, and secure Bun/NPM/Yarn/pnpm bridge for Composer

45103.3k4](/packages/php-forge-foxy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
