PHP code example of renedekat / blmreader

1. Go to this page and download the library: Download renedekat/blmreader 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/ */

    

renedekat / blmreader example snippets

 php
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();