Skip to content

Commit

Permalink
Merge pull request #1 from mjaschen/composer_support
Browse files Browse the repository at this point in the history
Added Composer support
  • Loading branch information
iamstuartwilson committed Sep 4, 2014
2 parents 4fb6150 + 5fe7ccd commit d098e5b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
/.idea/
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,31 @@ Please read the [API documentation](http://strava.github.io/api/) to see what en

There is currently no file upload support at this time

Installation
------------

### With Composer

Add `iamstuartwilson/strava` to your `composer.json`:

``` json
{
"require" : {
"iamstuartwilson/strava" : "dev-master"
}
}
```

### Manually

Copy `StravaApi.php` to your project and *require* it in your application as described in the next section.

Getting Started
------------

Include the class and instantiate with your **client_id** and **client_secret** from your [registered app](http://www.strava.com/developers):

require( 'StravaApi.php' );
require_once 'StravaApi.php';

$api = new StravaApi( $clientId, $clientSecret );

Expand Down
14 changes: 14 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "iamstuartwilson/strava",
"description": "Simple PHP Library for the Strava v3 API",
"homepage": "https://github.com/iamstuartwilson/strava",
"autoload": {
"classmap": [
"StravaApi.php"
]
},
"require":{
"php":">=5.3"
},
"minimum-stability":"dev"
}

0 comments on commit d098e5b

Please sign in to comment.