ccharz/medtronic-php-parser
最新稳定版本:v0.0.4
Composer 安装命令:
composer require ccharz/medtronic-php-parser
包简介
A PHP Medtronic Carelink Data Parser
README 文档
README
With this library you can parse data from export files available in the medtronic carelink center
Requirements
Installation
Use Composer to install this library into your project:
composer require "ccharz/medtronic-php-parser"
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
use Ccharz\MedtronicParser\ProfileParser; $filepath = 'path/to/your/medtronic-profile.pdf'; $result = (new ProfileParser($filepath, 'de', 'Europe/Vienna'))->parse(); var_dump($result);
CSV Data
Usage
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
For privacy reasons the test data is not included in the repository
License
This library is an open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-24