A package that converts gedcom files to Eloquent models
genealogiawebsite/laravel-gedcom is a Laravel package for a package that converts gedcom files to eloquent models.
It currently has 22 GitHub stars and 1.774 downloads on Packagist (latest version v3.4.4).
Install it with composer require genealogiawebsite/laravel-gedcom.
Discover more Laravel packages by genealogiawebsite
or browse all Laravel packages to compare alternatives.
Last updated
laravel-liberu/laravel-gedcom is a package to parse GEDCOM files, and import them as Laravel models, inside your Laravel application. It is used by: (https://github.com/familytree365/genealogy)
composer require laravel-liberu/laravel-gedcom
You must create the database schema before doing anything, so run the migrations:
php artisan migrate
php artisan gedcom:import /path/to/your/gedcom/file.ged
use FamilyTree365\LaravelGedcom\Facades\GedcomParserFacade;
$filename = '/path/to/your/gedcom/file.ged';
GedcomParserFacade::parse($filename, true);
use \FamilyTree365\LaravelGedcom\Utils\GedcomParser;
$filename = '/path/to/your/gedcom/file.ged';
$parser = new GedcomParser();
$parser->parse($filename, true);
This package will create the database tables, which map to models.
parse() MethodThe 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.