Download the PHP package ngpp/nikeplusexport without Composer

On this page you can find all versions of the php package ngpp/nikeplusexport. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nikeplusexport

This repo is not maintained and the script most likely doesn't work anymore since Nike+PHP is dead.

About

NikePlusExport is a script built to help you export your Nike+ gps activities.
The script supports JSON, GPX and TCX as output formats.
This project has been mainly inspired by https://gist.github.com/3121560.

This script does NOT use the nike+ api to retrieve the activites

Requirements

This script is based on the excellent Nike+PHP http://nikeplusphp.org/.
It has been successfully tested with nikeplusphp.4.5.php.
To run correctly, it needs PHP 5 with cURL and JSON.

Installation

Simply run, assuming you have installed composer.phar or composer binary:

$ composer require ngpp/nikeplusexport

Examples

Here's an example of code to export all your runs:

#!php
<?php
    //Creates the object
    $n = new \Nike\Export($username, $password);
    foreach ($n->activities() as $activity)
    {
        if ($activity->gps)
        {
            //Activities need to be loaded one by one to get the gps data
            $activity = $n->activity($activity->activityId)->activity;
            //Create JSON file
            if(!is_null($jsonContent = $n->toJSON($activity)))
            {
                file_put_contents($activity->activityId . '.json', $jsonContent);
            }
            //Create GPX file
            if(!is_null($gpxContent = $n->toGPX($activity)))
            {
                file_put_contents($activity->activityId . '.gpx', $gpxContent);
            }
            //Create TCX file
            if(!is_null($tcxContent = $n->toTCX($activity)))
            {
                file_put_contents($activity->activityId . '.tcx', $tcxContent);
            }
        }
    }

Information and contact

The script outputs respect the following implementations:

The gps data stored by the Nike+ application doesn't contain the time. It is calculated and could not be 100% accurate.

If you have any problem using the script or want to see new features, please send an email to [email protected]


All versions of nikeplusexport with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2.0
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ngpp/nikeplusexport contains the following files

Loading the files please wait ....