PHPackages                             reputation-vip/composer-assets-installer - 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. reputation-vip/composer-assets-installer

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

reputation-vip/composer-assets-installer
========================================

v2.0.0(9y ago)1325.6k6[2 PRs](https://github.com/ReputationVIP/composer-assets-installer/pulls)1MITPHP

Since Dec 17Pushed 2y ago9 watchersCompare

[ Source](https://github.com/ReputationVIP/composer-assets-installer)[ Packagist](https://packagist.org/packages/reputation-vip/composer-assets-installer)[ RSS](/packages/reputation-vip-composer-assets-installer/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (4)Versions (8)Used By (1)

Composer Assets Installer [![Build Status](https://camo.githubusercontent.com/17d731c18eb9207dc5fe924e7710f046c9f2473b0e200a4e3cb010362c229b2d/68747470733a2f2f7472617669732d63692e6f72672f52657075746174696f6e5649502f636f6d706f7365722d6173736574732d696e7374616c6c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ReputationVIP/composer-assets-installer)
==============================================================================================================================================================================================================================================================================================================================================================================

[](#composer-assets-installer-)

Composer Assets Installer provides a **fast and easy** way to **copy the assets of your Composer packages into your public folder**. You only have to chose one or multiple asset directories of the target in your "composer.json" file.

Code Example
------------

[](#code-example)

Here is the composer.json file of a distant Composer package we want to use in our project :

```
{
    "require": {
        "reputation-vip/composer-assets-installer": "~1.0"
    },
    "name": "reputation-vip/required-distant-package",
    "extra": {
        "assets-dir" : "public"
    }
}

```

Here is the composer.json file of our project :

```
{
    "require": {
        "reputation-vip/composer-assets-installer": "~1.0",
        "my/required-distant-package": "~1.0"
    },
    "extra": {
        "assets-dir" : "web"
    }
}

```

Then, the assets will be accessible through the following path: **web/my/required-distant-package**.

Motivation
----------

[](#motivation)

As members of the **Reputation VIP**'s development team, we are used to creating full Composer packages, embedding a javascript logic and a css layer.

When we first started using Composer, we were somehow frustrated by it's lack of asset handling. Indeed, Composer forced us to manually copy the assets into our public directory. Furthermore, every time we updated the package, we had to repeat this task.

That's why we needed a **tested, documented and easily configurable** Composer plugin which allowed us to **keep control on the asset directories**.

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

[](#installation)

You simply have to add the following line to the requirements of your composer.json file:

```
"require": {
    "reputation-vip/composer-assets-installer": "~1.0"
}

```

Then, you can specify the target for your asset directory (web for example):

```
"extra": {
    "assets-dir": "web"
}

```

API Reference
-------------

[](#api-reference)

With this solution, you can specify as many targets as you want:

```
"extra": {
    "assets-dir": {
        "js": "web/js",
        "css": "web/css"
     }
}

```

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

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

Recently: every ~199 days

Total

6

Last Release

3372d ago

Major Versions

1.0.4 → v2.0.02017-04-03

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7809600?v=4)[Alban Pommeret](/maintainers/Neverdane)[@neverdane](https://github.com/neverdane)

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

---

Top Contributors

[![neverdane](https://avatars.githubusercontent.com/u/7809600?v=4)](https://github.com/neverdane "neverdane (18 commits)")[![obalais](https://avatars.githubusercontent.com/u/807362?v=4)](https://github.com/obalais "obalais (1 commits)")[![tejerka](https://avatars.githubusercontent.com/u/11292390?v=4)](https://github.com/tejerka "tejerka (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/reputation-vip-composer-assets-installer/health.svg)

```
[![Health](https://phpackages.com/badges/reputation-vip-composer-assets-installer/health.svg)](https://phpackages.com/packages/reputation-vip-composer-assets-installer)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[symfony/runtime

Enables decoupling PHP applications from global state

74694.9M938](/packages/symfony-runtime)[symfony/asset-mapper

Maps directories of assets &amp; makes them available in a public directory with versioned filenames.

1668.1M215](/packages/symfony-asset-mapper)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k77.4k89](/packages/pocketmine-pocketmine-mp)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

749284.3k37](/packages/civicrm-civicrm-core)

PHPackages © 2026

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