PHPackages                             ccharz/medtronic-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. ccharz/medtronic-php-parser

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

ccharz/medtronic-php-parser
===========================

A PHP Medtronic Carelink Data Parser

v0.0.4(1y ago)045MITPHPPHP ^8.3

Since Jan 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ccharz/medtronic-php-parser)[ Packagist](https://packagist.org/packages/ccharz/medtronic-php-parser)[ RSS](/packages/ccharz-medtronic-php-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Medtronic PHP Parser
====================

[](#medtronic-php-parser)

With this library you can parse data from export files available in the medtronic carelink center

### Requirements

[](#requirements)

- **[PHP 8.3+](https://php.net/releases/)**

### Installation

[](#installation)

Use [Composer](https://getcomposer.org) to install this library into your project:

```
composer require "ccharz/medtronic-php-parser"
```

Basal Rates, Carb Ratio factors, Target Blood Sugar and Correction Factors
--------------------------------------------------------------------------

[](#basal-rates-carb-ratio-factors-target-blood-sugar-and-correction-factors)

> **Important:** Currently only exports in **german** with units in **mg/dl** are supported

### Usage

[](#usage)

```
use Ccharz\MedtronicParser\ProfileParser;

$filepath = 'path/to/your/medtronic-profile.pdf';

$result = (new ProfileParser($filepath, 'de', 'Europe/Vienna'))->parse();

var_dump($result);
```

CSV Data
--------

[](#csv-data)

### Usage

[](#usage-1)

To get all data from the csv use the following code

```
use Ccharz\MedtronicParser\ProfileParser;
$filepath = 'path/to/your/medtronic-export.csv';

$importer = new CsvParser($filepath, 'Europe/Vienna');

$lines = [];

$importer->parse(function (
    string $type,
    array $values
) use (&$lines) {
    $lines[$type][] = $values;
});

var_dump($lines);
```

Testing
-------

[](#testing)

For privacy reasons the test data is not included in the repository

License
-------

[](#license)

This library is an open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance42

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

478d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab9470e53a3c1c9a6654c0c049eae5eb9901beeeeb8f63f18292e4ad14d068e2?d=identicon)[ccharz](/maintainers/ccharz)

---

Top Contributors

[![ccharz](https://avatars.githubusercontent.com/u/2725238?v=4)](https://github.com/ccharz "ccharz (6 commits)")

---

Tags

nightscoutmedtroniccarelink

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ccharz-medtronic-php-parser/health.svg)

```
[![Health](https://phpackages.com/badges/ccharz-medtronic-php-parser/health.svg)](https://phpackages.com/packages/ccharz-medtronic-php-parser)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
