$ mkdir mynewapp
$ cd mynewapp
$ curl -sS https://getcomposer.org/installer | php
Create the file, composer.json
in your project root.
Add Gum
as a requirement:
{
"require": {
"gum/gum": "dev-master"
}
}
$ php composer.phar install
This will download all packages defined in the require
object of your composer.json
file.
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.