PHP code example of lyenrowe / bill-parser
1. Go to this page and download the library: Download lyenrowe/bill-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/ */
lyenrowe / bill-parser example snippets
//$path bill file full path;
$parser = FileParserFactory::create($path);
$rows = $parser->getData();
// save to db or something
/*foreach (array_chunk($rows, 1000) as $piece) {
$model->insertIgnore($piece);
}*/