PHP code example of arnaud-deabreu / fit-php-parser

1. Go to this page and download the library: Download arnaud-deabreu/fit-php-parser library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

arnaud-deabreu / fit-php-parser example snippets




use FitParser\Parser;

$parser = new Parser(
    file_get_contents('path/to/fit/file.fit')
);
$parser->parse();

$parser->getRecords(); // FitParser\Records\Record[]