ccharz/medtronic-php-parser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固