PHPackages                             php-kit/composer-bower-plugin - 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. php-kit/composer-bower-plugin

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

php-kit/composer-bower-plugin
=============================

Composer plugin for installing Bower packages

1.2.0(9y ago)63.4k31MITPHP

Since Sep 21Pushed 9y ago5 watchersCompare

[ Source](https://github.com/php-kit/composer-bower-plugin)[ Packagist](https://packagist.org/packages/php-kit/composer-bower-plugin)[ Docs](https://github.com/php-kit/composer-bower-plugin)[ RSS](/packages/php-kit-composer-bower-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (1)

Composer plugin for installing Bower packages
---------------------------------------------

[](#composer-plugin-for-installing-bower-packages)

This Composer plugin allows you to declare, manage and install front-end packages from the Bower repository on your project using Composer.

Besides managing your main application's front-end packages, **it also supports package dependencies**, i.e. other installed composer packages may define their own bower dependencies.

This plugin will merge all bower dependencies and generate a `bower.json` file on the root directory of your project.

> You should exclude this file from version control and you should refrain from modifying it, as you may loose any changes you make to it.

### Configuring

[](#configuring)

Dependencies are specified by an extra configuration section on your project's `composer.json` or on any packages' own `composer.json`.

> `bower.json` files are neither required nor supported. This is by design. All configuration information comes from `composer.json`.

#### Supported configuration keys

[](#supported-configuration-keys)

1. `require`
2. `require-dev`
3. `overrides`
4. `resolutions`

#### Example

[](#example)

###### root composer.json

[](#root-composerjson)

```
"require": {
  "php-kit/composer-bower-plugin": "dev-master"
},
"extra": {
  "bower": {
    "require": {
      "bootstrap": "~3.3.5"
    },
    "require-dev": {
      "jasmine": "~2.3.4"
    },
    "overrides": {
      "datatables": {
        "main": "media/js/jquery.dataTables.js"
      }
    },
    "resolutions": {
      "ember": "1.5.1"
    }
  }
}
```

#### Target installation directory

[](#target-installation-directory)

The dependencies will be installed on `vendor/bower_components` by default. You can customize that location via a `.bowerrc` file. Refer to the Bower documentation.

### Running

[](#running)

The plugin updates bower dependencies whenever one or more packages are installed or removed.

You may then copy the relevant source code files from the installation directory to a public web directory, using your favorite build tool.

License
-------

[](#license)

This library is open-source software licensed under the BSD-2-Clause license (see the accompanying `COPYING` file).

Copyright © 2015 by Impactwave Lda
Copyright © 2014 by Vivid Planet Software GmbH

This project started as a fork of [composer-extra-assets plugin](https://github.com/koala-framework/composer-extra-assets), but it has been extensively modified and it is, currently, no longer compatible with it.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 89.5% 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

Every ~140 days

Total

4

Last Release

3471d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/750f00fdbb8cb2fd1c11c5c26b512217451bb001ac48a77542efa7123b9e2124?d=identicon)[impactwave](/maintainers/impactwave)

---

Top Contributors

[![claudio-silva](https://avatars.githubusercontent.com/u/1999803?v=4)](https://github.com/claudio-silva "claudio-silva (17 commits)")[![erkib](https://avatars.githubusercontent.com/u/980671?v=4)](https://github.com/erkib "erkib (1 commits)")[![marcosalberto](https://avatars.githubusercontent.com/u/1580446?v=4)](https://github.com/marcosalberto "marcosalberto (1 commits)")

---

Tags

plugincomposerdependencyassetspackagesfront-endbower

### Embed Badge

![Health badge](/badges/php-kit-composer-bower-plugin/health.svg)

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

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M859](/packages/bamarni-composer-bin-plugin)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

525.5M69](/packages/automattic-jetpack-autoloader)[typisttech/imposter-plugin

Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.

158251.0k2](/packages/typisttech-imposter-plugin)

PHPackages © 2026

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