Via Composer
$ composer require renedekat/blmreader
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();
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email :author_email instead of using the issue tracker.
- [Rene de Kat][[email protected]]
The MIT License (MIT). Please see License File for more information.