Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you.
$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer
Add the following at the end to your bash/zsh file (e.g. .bashrc
, .bash_profile
, ...)
PATH=$HOME/.composer/vendor/bin:$PATH
$ composer global require schickling/git-s3:dev-master
$ vim ~/.composer/composer.json
And add the following line at the bottom (don't forget the comma on the line before). If the file is empty just copy the composer.json
from below:
"minimum-stability": "dev"
After that your composer.json
looks perhaps like this:
{
"require": {
"schickling/git-s3": "dev-master"
},
"minimum-stability": "dev"
}
I recommend using [Chocolatey] (http://chocolatey.org/packages?q=php):
$ cinst php
Close your cmd window, then open a command window. type:
$ php
to make sure you can access the php command
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar global require schickling/git-s3:dev-master
modify your environment PATH when git-s3 was installed -- for example, mine was installed under <user_directory>\AppData\Roaming\Composer\vendor\bin
go ahead and configure [git-s3] (https://github.com/schickling/git-s3)