PHPackages                             simialbi/composer-asset-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. simialbi/composer-asset-plugin

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

simialbi/composer-asset-plugin
==============================

NPM/Bower Dependency Manager for Composer 2

v1.4.6(6y ago)1339MITPHPPHP &gt;=5.3.3

Since Aug 4Pushed 3y agoCompare

[ Source](https://github.com/simialbi/composer-asset-plugin)[ Packagist](https://packagist.org/packages/simialbi/composer-asset-plugin)[ Docs](https://github.com/fxpio/composer-asset-plugin)[ Fund](https://paypal.me/francoispluchino)[ GitHub Sponsors](https://github.com/francoispluchino)[ RSS](/packages/simialbi-composer-asset-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (36)Used By (0)

NPM/Bower Dependency Manager for Composer v2
============================================

[](#npmbower-dependency-manager-for-composer-v2)

[![Latest Stable Version](https://camo.githubusercontent.com/7798e73556345a7b5dcc979cfac82e7df07e96c15f27ce9558b94c8cafb83993/68747470733a2f2f706f7365722e707567782e6f72672f73696d69616c62692f636f6d706f7365722d61737365742d706c7567696e2f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/simialbi/composer-asset-plugin)[![Total Downloads](https://camo.githubusercontent.com/f9a21308d40a9bd4a6903b29b1d82f87827662392601c55513db770a20cdbab8/68747470733a2f2f706f7365722e707567782e6f72672f73696d69616c62692f636f6d706f7365722d61737365742d706c7567696e2f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/simialbi/composer-asset-plugin)[![License](https://camo.githubusercontent.com/038f407478d7777318ee093c0cb5f7fd5383b82542969a2c543733221381cf24/68747470733a2f2f706f7365722e707567782e6f72672f73696d69616c62692f636f6d706f7365722d61737365742d706c7567696e2f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/simialbi/composer-asset-plugin)[![build](https://github.com/simialbi/composer-asset-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/simialbi/composer-asset-plugin/actions/workflows/build.yml)

The Composer Asset Plugin allows you to manage project assets (css, js, etc.) in your `composer.json`without installing NPM or Bower.

This plugin works by transposing package information from NPM or Bower to a compatible version for Composer. This allows you to manage asset dependencies in a PHP based project very easily.

> **Important:**
>
> ⚠ This plugin is based on [François Pluchino](https://github.com/francoispluchino)'s [Version for composer 1](https://github.com/fxpio/composer-asset-plugin). This v2 is not maintained by [François Pluchino](https://github.com/francoispluchino).
>
> The next official major version of Composer Asset Plugin by [François Pluchino](https://github.com/francoispluchino) is so different, but also incompatible with the current version, that it became a new project named [Foxy](https://github.com/fxpio/foxy).

##### Features include:

[](#features-include)

- Works with native management system versions of VCS repository of composer
- Works with public and private VCS repositories
- Lazy loader of asset package definitions to improve performance
- Import filter with the dependencies of the root package and the installed packages, for increased dramatically the performance for the update
- Automatically get and create an Asset VCS repository defined in:
    - [NPM Registry](https://www.npmjs.org)
    - [Bower Registry](http://bower.io/search)
    - [Private Bower Registry](https://github.com/Hacklone/private-bower)
- Automatically get and create the Asset VCS repositories of dependencies defined in each asset package (dev dependencies included)
- Mapping conversion of asset package to composer package for:
    - [NPM Package](https://www.npmjs.org/doc/package.json.html) - [package.json](resources/doc/schema.md#npm-mapping)
    - [Bower Package](http://bower.io/docs/creating-packages) - [bower.json](resources/doc/schema.md#bower-mapping)
- Conversion of [Semver version](resources/doc/schema.md#verison-conversion) to the composer version
- Conversion of [Semver range version](resources/doc/schema.md#range-verison-conversion) to the composer range version
- Conversion of [dependencies with URL](resources/doc/schema.md#url-range-verison-conversion) to the composer dependencies with the creation of VCS repositories
- Conversion of [multiple versions of the same dependency](resources/doc/schema.md#multiple-versions-of-a-dependency-in-the-same-project) to different dependencies of composer
- Add manually the [multiple versions of a same dependency in the project](resources/doc/index.md#usage-with-multiple-versions-of-the-same-dependency)
- Add a [custom config of VCS Repository](resources/doc/index.md#usage-with-vcs-repository)
- Override the [config of VCS Repository](resources/doc/index.md#overriding-the-config-of-a-vcs-repository) defined by the asset registry directly in config section of root composer
- VCS drivers for:
    - [Git](resources/doc/index.md#usage-with-vcs-repository)
    - [GitHub](resources/doc/index.md#usage-with-vcs-repository) (compatible with repository redirects)
    - [Git Bitbucket](resources/doc/index.md#usage-with-vcs-repository)
    - [Mercurial](resources/doc/index.md#usage-with-vcs-repository)
    - [SVN](resources/doc/index.md#usage-with-vcs-repository)
    - [Perforce](resources/doc/index.md#usage-with-vcs-repository)
- Local cache system for:
    - package versions
    - package contents
    - repository redirects
- Custom asset installers configurable in the root file `composer.json`
- For Bower, all files defined in the section `ignore` will not be installed
- Disable or replace the deleting of the ignore files for Bower
- Enable manually the deleting of the ignore files for NPM
- Use the Ignore Files Manager in the Composer scripts
- Configure the plugin per project, globally or with the environment variables
- Compatible with all commands, including:
    - `depends`
    - `diagnose`
    - `licenses`
    - `remove`
    - `require`
    - `search`
    - `show`
    - `status`

##### Why this plugin?

[](#why-this-plugin)

There already are several possibilities for managing assets in a PHP project:

1. Install Node.js and use NPM or Bower command line in addition to Composer command line
2. Do #1, but add Composer scripts to automate the process
3. Include assets directly in the project (not recommended)
4. Create a repository with all assets and include the `composer.json` file (and use Packagist or an VCS Repository)
5. Add a package repository in `composer.json` with a direct download link
6. Create a Satis or Packagist server
7. Other?

It goes without saying that each javascript, CSS, etc. library should be developed with the usual tools for that language, which front-end developers know well. However, in the case of a complete project in PHP, it shouldn't be necessary to use several tools (PHP, Nodejs, Composer, NPM, Bower, Grunt, etc.) to simply install these assets in your project.

This plugin has been created to address these issues. Additionally, most developers will not add a `composer.json`file to their projects just to support php based projects, especially when npm and/or bower already exist and are widely used.

Documentation
-------------

[](#documentation)

The bulk of the documentation is located in `Resources/doc/index.md`:

[Read the Documentation](resources/doc/index.md)

[Read the FAQs](resources/doc/faqs.md)

[Read the Release Notes](https://github.com/simialbi/composer-asset-plugin/releases)

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

[](#installation)

All the installation instructions are located in [documentation](resources/doc/index.md).

License
-------

[](#license)

This composer plugin is under the MIT license. See the complete license in:

[LICENSE](LICENSE)

About
-----

[](#about)

Fxp Composer Asset Plugin is a [François Pluchino](https://github.com/francoispluchino) initiative. See also the list of [contributors](https://github.com/simialbi/composer-asset-plugin/contributors).

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/simialbi/composer-asset-plugin/issues).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 89.9% 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 ~90 days

Recently: every ~3 days

Total

34

Last Release

1306d ago

Major Versions

v1.4.6 → 2.0.0-alpha.12022-07-15

PHP version history (2 changes)v1.0.0-beta1PHP &gt;=5.3.3

2.0.0-alpha.1PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3023342?v=4)[simialbi](/maintainers/simialbi)[@simialbi](https://github.com/simialbi)

---

Top Contributors

[![francoispluchino](https://avatars.githubusercontent.com/u/567393?v=4)](https://github.com/francoispluchino "francoispluchino (642 commits)")[![gabor-udvari](https://avatars.githubusercontent.com/u/1449353?v=4)](https://github.com/gabor-udvari "gabor-udvari (10 commits)")[![itstueben](https://avatars.githubusercontent.com/u/1614992?v=4)](https://github.com/itstueben "itstueben (9 commits)")[![huebs](https://avatars.githubusercontent.com/u/1166532?v=4)](https://github.com/huebs "huebs (8 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (5 commits)")[![alexandernst](https://avatars.githubusercontent.com/u/89727?v=4)](https://github.com/alexandernst "alexandernst (4 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (4 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (4 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (3 commits)")[![stefangr](https://avatars.githubusercontent.com/u/957244?v=4)](https://github.com/stefangr "stefangr (2 commits)")[![steffendietz](https://avatars.githubusercontent.com/u/11530?v=4)](https://github.com/steffendietz "steffendietz (2 commits)")[![wangchj](https://avatars.githubusercontent.com/u/1118410?v=4)](https://github.com/wangchj "wangchj (2 commits)")[![edgardmessias](https://avatars.githubusercontent.com/u/1530997?v=4)](https://github.com/edgardmessias "edgardmessias (2 commits)")[![nadar](https://avatars.githubusercontent.com/u/3417221?v=4)](https://github.com/nadar "nadar (1 commits)")[![nsams](https://avatars.githubusercontent.com/u/50764?v=4)](https://github.com/nsams "nsams (1 commits)")[![Potherca](https://avatars.githubusercontent.com/u/195757?v=4)](https://github.com/Potherca "Potherca (1 commits)")[![ywarnier](https://avatars.githubusercontent.com/u/609839?v=4)](https://github.com/ywarnier "ywarnier (1 commits)")[![Zaporozhec7](https://avatars.githubusercontent.com/u/24864702?v=4)](https://github.com/Zaporozhec7 "Zaporozhec7 (1 commits)")[![AnatolyRugalev](https://avatars.githubusercontent.com/u/1397674?v=4)](https://github.com/AnatolyRugalev "AnatolyRugalev (1 commits)")[![boekkooi](https://avatars.githubusercontent.com/u/399895?v=4)](https://github.com/boekkooi "boekkooi (1 commits)")

---

Tags

composerpackagenodejsassetbowernpmdependency manager

### Embed Badge

![Health badge](/badges/simialbi-composer-asset-plugin/health.svg)

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

###  Alternatives

[fxp/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

8894.8M39](/packages/fxp-composer-asset-plugin)[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)[yohang/dependency-tools

A simple Composer script to install NPM and/or Bower dependencies

4214.9k2](/packages/yohang-dependency-tools)

PHPackages © 2026

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