Skip to content

Commit

Permalink
Merge pull request #66 from pgodel/patch-1
Browse files Browse the repository at this point in the history
Updated Composer installation instructions
  • Loading branch information
raulfraile committed Oct 14, 2014
2 parents 1fb3682 + 1479422 commit 5c27eb1
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions doc/installation.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
# Installation

The recommended way to install Ladybug is through [Composer](http://packagist.org/about-composer). Just create a `composer.json file for your project:

``` json
{
"require": {
"raulfraile/ladybug": "~1.0"
}
}
```
To actually install Ladybug in your project, download the composer binary and run it:
The recommended way to install Ladybug is through [Composer](http://packagist.org/about-composer).

Download the composer binary:

``` bash
wget http://getcomposer.org/composer.phar
# or
curl -O http://getcomposer.org/composer.phar
```

php composer.phar install
Now, install Ladybug with Composer:

``` bash
composer.phar require raulfraile/ladybug
```

After running the `install` command, a new directory called 'vendor' will contain the Ladybug code, as well as all
After running the `require` command, a new directory called 'vendor' will contain the Ladybug code, as well as all
the required dependencies.

Once added the autoloader you will have access to the library:
Expand Down

0 comments on commit 5c27eb1

Please sign in to comment.