PHPackages                             hshn/npm-bundle - 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. hshn/npm-bundle

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

hshn/npm-bundle
===============

Handle asset dependencies and scripts with npm

v0.3.0(8y ago)427.1k1MITPHP

Since Feb 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hshn/HshnNpmBundle)[ Packagist](https://packagist.org/packages/hshn/npm-bundle)[ RSS](/packages/hshn-npm-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (7)Versions (4)Used By (0)

HshnNpmBundle
=============

[](#hshnnpmbundle)

[![Build Status](https://camo.githubusercontent.com/54b41bcde9c237a4d094be96a72bac350d9dfb6e0bae8910b55251eeeeda4ef5/68747470733a2f2f7472617669732d63692e6f72672f6873686e2f4873686e4e706d42756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hshn/HshnNpmBundle) [![Latest Stable Version](https://camo.githubusercontent.com/4924abda0eedc8d7804ab9aebb9f366fb150df158d2f8b8143cf9595c498c7d8/68747470733a2f2f706f7365722e707567782e6f72672f6873686e2f6e706d2d62756e646c652f762f737461626c65)](https://packagist.org/packages/hshn/npm-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/0cb44d461bb5fd3484eadacf8e9795b34365d1aba58b07fb84582ed46de70a73/68747470733a2f2f706f7365722e707567782e6f72672f6873686e2f6e706d2d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/hshn/npm-bundle)

The HshnNpmBundle adds support for managing node modules with npm.

Features included:

- Install node modules in your bundles with one command
- Invoke npm scripts in your bundles with one command
- Unit tested

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

[](#installation)

### 1. Download HshnNpmBundle using composer

[](#1-download-hshnnpmbundle-using-composer)

```
$ php composer.phar require hshn/npm-bundle
```

### 2. Enable the bundles

[](#2-enable-the-bundles)

```
