PHPackages                             arnaud-deabreu/fit-php-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. arnaud-deabreu/fit-php-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

arnaud-deabreu/fit-php-parser
=============================

Unofficial PHP library to parse FIT files

v0.0.3(1y ago)9119↓83.3%3[1 issues](https://github.com/arnaud-deabreu/fit-php-parser/issues)[1 PRs](https://github.com/arnaud-deabreu/fit-php-parser/pulls)MITPHPPHP &gt;=8.3CI passing

Since Sep 13Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/arnaud-deabreu/fit-php-parser)[ Packagist](https://packagist.org/packages/arnaud-deabreu/fit-php-parser)[ Docs](https://nodelia.com)[ RSS](/packages/arnaud-deabreu-fit-php-parser/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (8)Versions (5)Used By (0)

FIT File Parser PHP Library
===========================

[](#fit-file-parser-php-library)

Note

This project is a work in progress (WIP) and is not ready for production use. Contributions, suggestions, and feedback are welcome as we work towards a stable release.

[![FIT PHP PARSER](https://repository-images.githubusercontent.com/843801807/8db07dea-9607-4ca7-887f-711670f7c765)](https://repository-images.githubusercontent.com/843801807/8db07dea-9607-4ca7-887f-711670f7c765)

👋🏻 Introduction
---------------

[](#-introduction)

Welcome to the FIT File Parser Library, a PHP-based library designed to parse FIT files. FIT (Flexible and Interoperable Data Transfer) files are commonly used in fitness devices to store workout data. This library is inspired by the Garmin SDK but is developed independently with the goal of providing an open-source alternative for the PHP community.
The FIT protocol documentation can be found [here](https://developer.garmin.com/fit/overview/)

Important

Garmin is a registered trademark of Garmin Ltd. or its subsidiaries, and this library is an independent project that is not affiliated with, endorsed by, or associated with Garmin in any way.

🛠️ Features
-----------

[](#️-features)

FIT File Parsing: Read and parse FIT files into PHP data objects. Parsing the file will give you an array of `FitParser\Records\RecordInterface` objects, which contain an array of `FitParser\Records\ValueInterface` objects. Each `RecordInterface` contains an array of `ValueInterface` objects related to the record type.

Example: A `FileId` record can contain an array of `Manufacturer`, `Number`, `Product`, `ProductName`, `SerialNumber`, and `TimeCreated` `ValueInterface` objects. If a field is unknown, it will be represented by an `UnknownValue` object.

📚 Installation
--------------

[](#-installation)

To use the library, install it with this command:

```
composer require arnaud-deabreu/fit-php-parser
```

📝 Parse a FIT file
------------------

[](#-parse-a-fit-file)

```
