PHPackages                             basvandorst/stravaphp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. basvandorst/stravaphp

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

basvandorst/stravaphp
=====================

Strava V3 API PHP client with OAuth authentication

2.0.0(4y ago)189192.4k↑64.7%70[3 issues](https://github.com/basvandorst/StravaPHP/issues)2MITPHPPHP ^7.4 || ^8.0CI passing

Since Dec 29Pushed 7mo ago28 watchersCompare

[ Source](https://github.com/basvandorst/StravaPHP)[ Packagist](https://packagist.org/packages/basvandorst/stravaphp)[ RSS](/packages/basvandorst-stravaphp/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (17)Used By (2)

StravaPHP
=========

[](#stravaphp)

[![Build Status](https://github.com/basvandorst/StravaPHP/workflows/PHP/badge.svg)](https://github.com/basvandorst/StravaPHP/actions/workflows/php.yml) [![Coverage Status](https://camo.githubusercontent.com/51fcb0db24bb8e9dc2a3b3566c34e2e9b6733a98a24e88a3b160627f2742d6a5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f62617376616e646f7273742f5374726176615048502f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/basvandorst/StravaPHP?branch=develop)

**TLDR;** Strava V3 API PHP client with OAuth authentication

The Strava V3 API is a publicly available interface allowing developers access to the rich [Strava](https://www.strava.com/) dataset. The interface is stable and currently used by the Strava mobile applications. However, changes are occasionally made to improve performance and enhance features. See Strava's [changelog](https://strava.github.io/api/v3/changelog/) for more details.

In this GitHub repository you can find the PHP implementation of the Strava V3 API. The current version of StravaPHP combines the V3 API with a proper OAuth authentication.

Getting started
---------------

[](#getting-started)

### Get your API key

[](#get-your-api-key)

All calls to the Strava API require an access token defining the athlete and application making the call. Any registered Strava user can obtain an access token by first creating an application at [https://developers.strava.com](https://developers.strava.com/)

### Composer package

[](#composer-package)

Use composer to install this StravaPHP package.

```
{
    "require": {
        "basvandorst/stravaphp": "^2.0.0"
    }
}

```

### StravaPHP usage

[](#stravaphp-usage)

#### First, authorisation and authentication

[](#first-authorisation-and-authentication)

```
