PHPackages                             mariusbuescher/node-composer - 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. mariusbuescher/node-composer

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

mariusbuescher/node-composer
============================

Installs composer nodejs or/and npm in vendor/

v1.2.2(9y ago)65633[2 issues](https://github.com/mariusbuescher/node-composer/issues)[4 PRs](https://github.com/mariusbuescher/node-composer/pulls)2MITPHPPHP &gt;=5.5.9

Since Jun 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mariusbuescher/node-composer)[ Packagist](https://packagist.org/packages/mariusbuescher/node-composer)[ Docs](https://github.com/mariusbuescher/node-composer)[ RSS](/packages/mariusbuescher-node-composer/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (2)

[![License](https://camo.githubusercontent.com/87d74823add99ef69d7c4895b140704b97f370d9a9a013a1fa015c9a3938691b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d617269757362756573636865722f6e6f64652d636f6d706f736572)](LICENSE) [![Packagist Version](https://camo.githubusercontent.com/4ab187c03e195ae2401f625abc8d5d78185f4d484eb13cfd06960f5dd5027b41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617269757362756573636865722f6e6f64652d636f6d706f736572)](https://packagist.org/packages/mariusbuescher/node-composer) [![Tests](https://github.com/mariusbuescher/node-composer/workflows/Tests/badge.svg?branch=master)](https://github.com/mariusbuescher/node-composer/actions?query=workflow%3ATests)

node-composer
=============

[](#node-composer)

> composer plugin for a better frontend setup

PHP projects mostly are Web-Applications. Many Web-Applications also need a frontend part which runs in the browser. In modern Web-Development there often a whole build-chain connected to the frontend, so you can compile e.g. your scss, build your JavaScript with webpack and optimize your images.

This plugin provides a way to automatically download and installthe right version of node.js, npm and yarn. The binaries are linked to the bin-directory specified in your composer.json.

After that your can use node, npm and yarn in your composer-scripts.

Setup
-----

[](#setup)

The setup is pretty easy. Simply install the plugin in specify the node-version in your composer.json extra configs.

Example composer.json

```
{
    "name": "my/project",
    "type": "project",
    "license": "MIT",
    "authors": [
        {
            "name": "Marius Büscher",
            "email": "marius.buescher@gmx.de"
        }
    ],
    "require": {
        "mariusbuescher/node-composer": "*"
    },
    "extra": {
        "mariusbuescher": {
            "node-composer": {
                "node-version": "4.8.3",
                "yarn-version": "0.22.0"
            }
        }
    }
}
```

Configuration
-------------

[](#configuration)

There are three parameters you can configure: The node version (`node-version`), the yarn version (`yarn-version`) and the download url template for the node.js binary archives (`node-download-url`).

In the node download url the following parameters are replaced:

- version: `${version}`
- type of your os: `${osType}`
- system architecture: `${architecture}`
- file format `${format}`

Example composer.json:

```
{
    // ...
    "extra": {
        "mariusbuescher": {
            "node-composer": {
                "node-version": "6.11.0",
                "yarn-version": "0.24.5",
                "node-download-url": "https://nodejs.org/dist/v${version}/node-v${version}-${osType}-${architecture}.${format}"
            }
        }
    }
}
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 63.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 ~0 days

Total

6

Last Release

3299d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65677acc694156059f46f8e17cd2392f8cd0285aefb5407d7d279640b461283b?d=identicon)[mariusbuescher](/maintainers/mariusbuescher)

---

Top Contributors

[![mariusbuescher](https://avatars.githubusercontent.com/u/4403491?v=4)](https://github.com/mariusbuescher "mariusbuescher (23 commits)")[![MekDrop](https://avatars.githubusercontent.com/u/342641?v=4)](https://github.com/MekDrop "MekDrop (13 commits)")

---

Tags

javascriptnodejsfrontendyarnnpm

### Embed Badge

![Health badge](/badges/mariusbuescher-node-composer/health.svg)

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

###  Alternatives

[fxp/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

8884.8M41](/packages/fxp-composer-asset-plugin)[foxy/foxy

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

177289.8k26](/packages/foxy-foxy)[php-forge/foxy

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

45126.3k4](/packages/php-forge-foxy)[mouf/nodejs-installer

An installer package that let's you install NodeJS and NPM as a Composer dependency.

107705.0k15](/packages/mouf-nodejs-installer)[regularjack/frontend-bundle

A modern frontend development workflow for Symfony apps

3022.6k](/packages/regularjack-frontend-bundle)[noerd/noerd

101.3k6](/packages/noerd-noerd)

PHPackages © 2026

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