PHPackages                             tbbc/composer-javascript - 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. tbbc/composer-javascript

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tbbc/composer-javascript
========================

Composer script handler for executing `npm install` and `bower install` automatically.

1716.4kPHP

Since May 28Pushed 11y ago5 watchersCompare

[ Source](https://github.com/TheBigBrainsCompany/composer-javascript)[ Packagist](https://packagist.org/packages/tbbc/composer-javascript)[ RSS](/packages/tbbc-composer-javascript/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

The Big Brains Company - Composer Javascript
============================================

[](#the-big-brains-company---composer-javascript)

Composer script handler for executing `npm install` and `bower install` automatically after the `composer install` (or update) command.

Usage
-----

[](#usage)

Add this lines to your composer.json file:

```
{
    "require": {
        "tbbc/composer-javascript": "~1.0"
    },
    "scripts": {
        "post-install-cmd": [
            "Tbbc\\ComposerJavascript\\ScriptHandler::npmInstall",
            "Tbbc\\ComposerJavascript\\ScriptHandler::bowerInstall"
        ],
        "post-update-cmd": [
            "Tbbc\\ComposerJavascript\\ScriptHandler::npmInstall",
            "Tbbc\\ComposerJavascript\\ScriptHandler::bowerInstall"
        ]
    }
}
```

You can freely add both or just one of the `npmInstall` or `bowerInstall` scripts.

Options
-------

[](#options)

For users that work with a Samba sharing or like, you can pass an option for `npm install` to prevent using symlinks for binaries.

Just add the following to your composer.json file:

```
"extra": {
    "tbbc-composer-javascript": {
        "npm-bin-links": false
    }
}
```

`npm-bin-links` default value is `true`.

[![The Big Brains Company - Logo](https://camo.githubusercontent.com/1f1a60532f95341dbae519e720db83ffb265a06669dba5da82ca5d6f728180be/687474703a2f2f746262632d76616c69642e746865626967627261696e73636f6d70616e792e636f6d2f6173736574732f696d616765732f6c6f676f2d746262632e706e67)](http://thebigbrainscompany.com)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.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.

### Community

Maintainers

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

---

Top Contributors

[![benjamindulau](https://avatars.githubusercontent.com/u/430689?v=4)](https://github.com/benjamindulau "benjamindulau (7 commits)")[![armetiz](https://avatars.githubusercontent.com/u/1119250?v=4)](https://github.com/armetiz "armetiz (1 commits)")

### Embed Badge

![Health badge](/badges/tbbc-composer-javascript/health.svg)

```
[![Health](https://phpackages.com/badges/tbbc-composer-javascript/health.svg)](https://phpackages.com/packages/tbbc-composer-javascript)
```

###  Alternatives

[phonetworks/pho-lib-graph

A general purpose graph library in PHP

556.0k1](/packages/phonetworks-pho-lib-graph)

PHPackages © 2026

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