PHPackages                             nikhilkuria/nikeandphp - 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. [API Development](/categories/api)
4. /
5. nikhilkuria/nikeandphp

ActiveLibrary[API Development](/categories/api)

nikhilkuria/nikeandphp
======================

A PHP library used to work with Nike+ API

v0.0.2(9y ago)0181[2 issues](https://github.com/nikhilkuria/nikeandphp/issues)PHP

Since Feb 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/nikhilkuria/nikeandphp)[ Packagist](https://packagist.org/packages/nikhilkuria/nikeandphp)[ RSS](/packages/nikhilkuria-nikeandphp/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

nikeandphp
==========

[](#nikeandphp)

[![Build Status](https://camo.githubusercontent.com/f2c534dea388f47687fac71bfa745dfa6f2b8dcec8a8a3aea1733ca1f6137bd7/68747470733a2f2f7472617669732d63692e6f72672f6e696b68696c6b757269612f6e696b65616e647068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nikhilkuria/nikeandphp) [![Latest Stable Version](https://camo.githubusercontent.com/19364e52848c0f8f1042336cd05478ee9db11a84d70c813ecdce775c281859a5/68747470733a2f2f706f7365722e707567782e6f72672f6e696b68696c6b757269612f6e696b65616e647068702f762f737461626c65)](https://packagist.org/packages/nikhilkuria/nikeandphp)

nikeandphp is a php package used to retrive information from the Nike+ APIs. The library is hosted under Packagist

The APIs are generally closed and have a history of sudden changes. If you feel anything broken or does not seem to work as it is supposed to, please raise a bug and we will have a look at it as soon as we can.

The prime interface which exposes the data from Nike+ is [NikeService](https://github.com/nikhilkuria/nikeandphp/blob/master/src/NikeAndPhp/Service/NikeService.php)Use the static factory method to get an instance of [NikeService](https://github.com/nikhilkuria/nikeandphp/blob/master/src/NikeAndPhp/Service/NikeService.php). The facory method expects the username and password of your Nike+ account.

```
$nikeService = BasicNikeService::createWithCredentials($userName,$passWord);

```

Once you have the [NikeService](https://github.com/nikhilkuria/nikeandphp/blob/master/src/NikeAndPhp/Service/NikeService.php), you can directly call the methods which are exposed.

- Get a summary of the acitivites
- Get the entire list of runs

### Get the summary

[](#get-the-summary)

```
$summary = $nikeService->getSummary();

```

This would give an object corresponding to the JSON

```
{
  "links": [
    {
      "rel": "self",
      "href": "https://api.nike.com/v1/me/sport"
    },
    {
      "rel": "activities",
      "href": "https://api.nike.com/v1/me/sport/activities"
    }
  ],
  "experienceTypes": [
    "RUNNING"
  ],
  "summaries": [
    {
      "experienceType": "ALL",
      "records": [
        {
          "recordType": "LIFETIMEFUEL",
          "recordValue": "581652"
        }
      ]
    },
    {
      "experienceType": "RUNNING",
      "records": [
        {
          "recordType": "LIFETIMEFUEL",
          "recordValue": "585162"
        },
        {
          "recordType": "LEVEL",
          "recordValue": "11"
        },
        {
          "recordType": "LIFETIMEDISTANCE",
          "recordValue": "2267.7218332193397"
        },
        {
          "recordType": "LIFETIMEDURATION",
          "recordValue": "221:44:03.876"
        },
        {
          "recordType": "LIFETIMEAVERAGEPACE",
          "recordValue": "298571.4120103049"
        },
        {
          "recordType": "LONGESTRUNDISTANCE",
          "recordValue": "21.58303"
        }
      ]
    }
  ]
}

```

### Get Runs

[](#get-runs)

```
$lastRecords = $nikeService->getRuns(10, true);

```

This takes in two params

- num of runs
- boolean to summarize the runs or not (defaults to false)

An unsummarized run request will return an object corresponding to the php object for this Json

```
{
  "data": [
    {
      "links": [
        {
          "rel": "self",
          "href": "https://api.nike.com/v1/me/sport/activities/7320000000003216744510001903729471141578"
        }
      ],
      "activityId": "7320000000003216744510001903729471141578",
      "activityType": "RUN",
      "startTime": "2017-03-17T15:20:59Z",
      "activityTimeZone": "Asia/Kolkata",
      "status": "COMPLETE",
      "deviceType": "OTHER",
      "metricSummary": {
        "calories": "166",
        "fuel": "521",
        "distance": "2.026179075241089",
        "steps": "1853",
        "duration": "0:12:25.861"
      },
      "tags": [
        {
          "tagType": "LOCATION",
          "tagValue": "OUTDOORS"
        },
        {
          "tagType": "SHOES",
          "tagValue": "Nike Free 5.0"
        }
      ],
      "metrics": []
    }
  ],
  "paging": {
    "next": "/v1/me/sport/activities/RUNNING?count=1&access_token=qZDE3FwVxhDu6VPVY2ajcct0g35f&offset=2",
    "previous": null
  }
}

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

3

Last Release

3408d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4747212?v=4)[Nikhil Kuriakose](/maintainers/nikhilkuria)[@nikhilkuria](https://github.com/nikhilkuria)

---

Top Contributors

[![nikhilkuria](https://avatars.githubusercontent.com/u/4747212?v=4)](https://github.com/nikhilkuria "nikhilkuria (25 commits)")

### Embed Badge

![Health badge](/badges/nikhilkuria-nikeandphp/health.svg)

```
[![Health](https://phpackages.com/badges/nikhilkuria-nikeandphp/health.svg)](https://phpackages.com/packages/nikhilkuria-nikeandphp)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.4M25](/packages/googleads-googleads-php-lib)[googleads/google-ads-php

Google Ads API client for PHP

3478.1M11](/packages/googleads-google-ads-php)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k406.5k25](/packages/team-reflex-discord-php)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
