composer require familytree365/laravel-dna
php artisan dna:import /path/to/your/dna/file.dna
use FamilyTree365\LaravelDna\Facades\DnaParserFacade;
$filename = '/path/to/your/dna/file.dna';
DnaParserFacade::parse($filename, true);
use \FamilyTree365\LaravelDna\Utils\DnaParser;
$filename = '/path/to/your/dna/file.dna';
$parser = new DnaParser();
$parser->parse($filename, true);
The parse()
method takes three parameters, string $filename
, bool $progressBar = false
and string $conn
If you set $progressBar
to true, a ProgressBar will be output to php://stdout
, which is useful when you are calling
the parser from Artisan commands.
Pull requests are welcome, as are issues.
MIT License (see License.md). This means you must retain the copyright and permission notice is all copies, or substantial portions of this software.