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

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

pantheon-se/node-composer
=========================

Installs Node.js, NPM, and Yarn into vendor/bin

v2.1.6(2y ago)510.7k↓27%MITPHPPHP &gt;=7.1

Since Jun 15Pushed 2y ago9 watchersCompare

[ Source](https://github.com/Pantheon-SE/node-composer)[ Packagist](https://packagist.org/packages/pantheon-se/node-composer)[ Docs](https://github.com/pantheon-se/node-composer)[ RSS](/packages/pantheon-se-node-composer/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (22)Used By (0)

[![License](https://camo.githubusercontent.com/c8d0e5ffc8673bda53acb84ecf1f4a266ddead9fb7694110e5b40329f72ee056/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70616e7468656f6e2d73652f6e6f64652d636f6d706f736572)](LICENSE) [![Packagist Version](https://camo.githubusercontent.com/6b5212254eb663b3a351f907f2926f22d8a6a278f7c7f41cc2fa6fc6a00ceabc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70616e7468656f6e2d73652f6e6f64652d636f6d706f736572)](https://packagist.org/packages/pantheon-se/node-composer) [![Tests](https://github.com/pantheon-se/node-composer/actions/workflows/test.yml/badge.svg?branch=2.x)](https://github.com/Pantheon-SE/node-composer/actions)

Node Composer
=============

[](#node-composer)

> Composer Plugin to implement asset compilation via Composer with Node.js.

Based on [node-composer by mariusbuescher](https://github.com/mariusbuescher/node-composer), this Composer plugin will install Node.js, NPM, and/or Yarn into your vendor/bin directory so that they are available to use during your Composer builds. This plugin helps automate the download of the binaries which are linked to the bin-directory specified in your composer.json.

Once installed, you can then use Node, NPM, and Yarn commands in your composer-scripts.

Setup
-----

[](#setup)

Simply install the plugin, and the latest Node.js LTS with NPM will be installed - **no other configurations are necessary**. Optionally, you can specify the `node-version` in your composer.json extra configs to declare a specific version of Node.js. For Yarn, `yarn-version` can either be set to `true` to install the latest, or can be set to a specific version.

**Example composer.json with Yarn**

```
{
  "name": "my/project",
  "type": "project",
  "license": "MIT",
  "require": {
    "pantheon-se/node-composer": "*"
  },
  "extra": {
    "pantheon-se": {
      "node-composer": {
        "yarn-version": true
      }
    }
  },
  "config": {
    "allow-plugins": {
      "pantheon-se/node-composer": true
    }
  },
  "scripts": {
    "post-install-cmd": ["@build"],
    "post-update-cmd": ["@build"],
    "build": "cd web/themes/my_theme && yarn build"
  }
}
```

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

[](#configuration)

There are three parameters you can configure:

- Node version (`node-version`)
- Yarn version (`yarn-version`)
- The download url template for the Node.js binary archives (`node-download-url`).

In the Node download url, replace the following placeholders with your specific needs:

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

**Example composer.json with specific versions of Node and Yarn**

```
{
  "extra": {
    "pantheon-se": {
      "node-composer": {
        "node-version": "16.14.0",
        "yarn-version": "1.22.18",
        "node-download-url": "https://nodejs.org/dist/v${version}/node-v${version}-${osType}-${architecture}.${format}"
      }
    }
  }
}
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~147 days

Recently: every ~141 days

Total

18

Last Release

749d ago

Major Versions

v1.3 → v2.0.02022-07-23

PHP version history (2 changes)v1.2.0PHP &gt;=5.5.9

1.x-devPHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1759794?v=4)[Kyle Taylor](/maintainers/kyletaylored)[@kyletaylored](https://github.com/kyletaylored)

---

Top Contributors

[![kyletaylored](https://avatars.githubusercontent.com/u/1759794?v=4)](https://github.com/kyletaylored "kyletaylored (54 commits)")[![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/pantheon-se-node-composer/health.svg)

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

###  Alternatives

[fxp/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

8894.8M41](/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)[regularjack/frontend-bundle

A modern frontend development workflow for Symfony apps

3122.6k](/packages/regularjack-frontend-bundle)[vaimo/composer-changelogs

Provide information about package changes based on changelog files that are bundled with releases; provide tools for generating documentation files from changelog sources

11150.5k10](/packages/vaimo-composer-changelogs)[machy8/webloader

Simple, easy to use, php bundler for javascript and css

1934.2k3](/packages/machy8-webloader)

PHPackages © 2026

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