npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

shipit-composer

v0.0.5

Published

Install composer packages

Downloads

213

Readme

shipit-composer

Build Status Dependency Status

Note: this plugin is in a very early alpha stage.

Roadmap

  • Automatic installation of composer.
  • Better error catching.
  • Possibility to run any composer command.

Install

npm install shipit-composer --save-dev

Usage

Just simply run: This triggers the composer task on the deploy updated or fetched event.

shipit staging deploy

Or you can run the tasks separatly :

shipit staging composer:init composer:install

Options shipit.config.composer

composer.remote

Type: Boolean Default: true

A Boolean to determine whether to run the task in local workspace or on the remote.

composer.installArgs

Type: Array or String Default: []

An array or string specifying composer args passed to the composer install cmd.

composer.installFlags

Type: Array or String Default: []

An array or string specifying composer flags passed to the composer install cmd.

composer.triggerEvent

Type: String,Boolean Default: updated or fetched (depending on composer.remote value)

An event name that triggers composer:install. Can be set to false to prevent the composer:install task from listening to any events.

composer.composerCommand

Type: String, Default: composer

A simple string which gets converted to a path for adding a custom composer-file if the command is not present in the environment. (i.E. shared hosting). Provide absolute path!

Example shipitfile.js options usage

module.exports = function (shipit) {

  require('shipit-deploy')(shipit);
  require('shipit-composer')(shipit);

  shipit.initConfig({
    default: {
      composer: {
        remote: false,
        installFlags: ['--no-dev', '--prefer-stable'],
        composerCommand: '/home/www-user/bin/composer.phar'
      }
    }
  });

};

Workflow tasks

  • composer
    • composer:init
      • Emit event "composer_inited".
    • composer:install
      • Runs composer install (with any Args composer.installArgs or Flags composer.installFlags defined in options)
      • Emit event "composer_installed"
    • composer:run
      • Runs composer command.
Event flow:
  • on Event "deploy" (shipit-deploy initialized)
    • Runs composer:init
    • on Event "composer_inited"
      • Runs composer:install (Triggered on the updated or fetched event from shipit-deploy or by a custom composer.triggerEvent as mentioned above.)

License

MIT

Contributing

  1. Fork it ( https://github.com/jeremyzahner/shipit-composer/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request