PHP code example of ccharz / medtronic-php-parser
1. Go to this page and download the library: Download ccharz/medtronic-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/ */
ccharz / medtronic-php-parser example snippets
use Ccharz\MedtronicParser\ProfileParser;
$filepath = 'path/to/your/medtronic-profile.pdf';
$result = (new ProfileParser($filepath, 'de', 'Europe/Vienna'))->parse();
var_dump($result);
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);
bash
composer