PHPackages                             theprivateer/fit-file-analysis - 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. theprivateer/fit-file-analysis

ActiveLibrary

theprivateer/fit-file-analysis
==============================

A PHP class for analysing FIT files created by Garmin GPS devices

03PHP

Since Oct 9Pushed 2y agoCompare

[ Source](https://github.com/theprivateer/php-fit-file-analysis)[ Packagist](https://packagist.org/packages/theprivateer/fit-file-analysis)[ RSS](/packages/theprivateer-fit-file-analysis/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

phpFITFileAnalysis
==================

[](#phpfitfileanalysis)

> Originally forked from  and adjusted for own edge-cases

A PHP (&gt;= v5.4) class for analysing FIT files created by Garmin GPS devices.

[Live demonstration](http://adriangibbons.com/php-fit-file-analysis/demo/) (Right-click and Open in new tab)

Demo Screenshots
----------------

[](#demo-screenshots)

[![Mountain Biking](demo/img/mountain-biking.jpg)](demo/img/mountain-biking.jpg)[![Power Analysis](demo/img/power-analysis.jpg)](demo/img/power-analysis.jpg)[![Quadrant Analysis](demo/img/quadrant-analysis.jpg)](demo/img/quadrant-analysis.jpg)[![Swim](demo/img/swim.jpg)](demo/img/swim.jpg)

Please read this page in its entirety and the [FAQ](https://github.com/adriangibbons/php-fit-file-analysis/wiki/Frequently-Asked-Questions-(FAQ)) first if you have any questions or need support.

What is a FIT file?
-------------------

[](#what-is-a-fit-file)

FIT or Flexible and Interoperable Data Transfer is a file format used for GPS tracks and routes. It is used by newer Garmin fitness GPS devices, including the Edge and Forerunner series, which are popular with cyclists and runners.

Visit the FAQ page within the Wiki for more information.

How do I use phpFITFileAnalysis with my PHP-driven website?
-----------------------------------------------------------

[](#how-do-i-use-phpfitfileanalysis-with-my-php-driven-website)

A couple of choices here:

**The more modern way:** Add the package *adriangibbons/php-fit-file-analysis* in a composer.json file:

```
{
    "require": {
        "adriangibbons/php-fit-file-analysis": "^3.2.0"
    }
}
```

Run `composer update` from the command line.

The composer.json file should autoload the `phpFITFileAnalysis` class, so as long as you include the autoload file in your PHP file, you should be able to instantiate the class with:

```
