Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
/ blmreader Public archive

Parse BLM files into arrays, csv or Excel

License

Notifications You must be signed in to change notification settings

renedekat/blmreader

Repository files navigation

Latest Stable Version Total Downloads License composer.lock

Build Status StyleCI Scrutinizer Code Quality SensioLabsInsight

BLM Reader

Install

Via Composer

$ composer require renedekat/blmreader

Usage

use ReneDeKat\Blm\Drivers\Simple;
use ReneDeKat\Blm\Drivers\Csvq;

// Create simple (array) output
$simple = Simple::create()->loadFromFile("path/to/blmFile");
// OR
$simple = Simple::create()->loadFromString($blmContents);

$rawContents = $simple->getRawContents();
$output = $simple->getOutput();
$data = $output['data'];
$definitions = $output['definitions']
$headers = $output['headers;

// Create CSV output
$csv = Csv::create()->loadFromFile("path/to/blmFile")
$output = $csv->getOutput();

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.