PHPackages                             mmerlijn/php-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mmerlijn/php-fit-file-analysis

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mmerlijn/php-fit-file-analysis
==============================

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

v3.2.5(3y ago)08PHP

Since Aug 16Pushed 3y agoCompare

[ Source](https://github.com/mmerlijn/php-fit-file-analysis)[ Packagist](https://packagist.org/packages/mmerlijn/php-fit-file-analysis)[ Docs](https://github.com/mmerlijn/php-fit-file-analysis)[ GitHub Sponsors](https://github.com/adriangibbons)[ RSS](/packages/mmerlijn-php-fit-file-analysis/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (23)Used By (0)

[![Build Status](https://camo.githubusercontent.com/ffc76bcde97446aba67cedfbc26cf716c4d93910cfb129f8926ea8ce3ca6c1dc/68747470733a2f2f7472617669732d63692e6f72672f61647269616e676962626f6e732f7068702d6669742d66696c652d616e616c797369732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/adriangibbons/php-fit-file-analysis) [![Packagist](https://camo.githubusercontent.com/a8119dda261dbc89e93128e4b3a889dae9373f5d612dd07523287da6c68d5e6d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61647269616e676962626f6e732f7068702d6669742d66696c652d616e616c797369732e737667)](https://packagist.org/packages/adriangibbons/php-fit-file-analysis) [![Packagist](https://camo.githubusercontent.com/53f811722cac141646ec01532048115b74e5a27e27af7499eb1c4305d5350f92/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61647269616e676962626f6e732f7068702d6669742d66696c652d616e616c797369732e737667)](https://packagist.org/packages/adriangibbons/php-fit-file-analysis) [![Coverage Status](https://camo.githubusercontent.com/169b32854d21310e7a515216c7eaf8eb64cee41d03729b782a8329fcce1e40e9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f61647269616e676962626f6e732f7068702d6669742d66696c652d616e616c797369732f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/adriangibbons/php-fit-file-analysis?branch=master)

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

[](#phpfitfileanalysis)

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:

```
