Skip to content

Instantly share code, notes, and snippets.

@staydecent
Created April 28, 2013 20:08
Show Gist options
  • Save staydecent/5478223 to your computer and use it in GitHub Desktop.
Save staydecent/5478223 to your computer and use it in GitHub Desktop.
Using Gum with Composer.

Using Gum with Composer

Create a new dir for your project

$ mkdir mynewapp

Install Composer

$ cd mynewapp $ curl -sS https://getcomposer.org/installer | php

define your dependencies

Create the file, composer.json in your project root. Add Gum as a requirement:

{
    "require": {
        "gum/gum": "dev-master"
    }
}

download Gum

$ php composer.phar install

This will download all packages defined in the require object of your composer.json file.

load gum and your other packages

require 'vendor/autoload.php';

Put this in your projects bootstrap process (index.php, init.php, etc.) to automatically load all of the composer packages you have defined in your composer.json file.

You're off to the races!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment