Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork48
Gedcom reading and writing for Laravel 10, Laravel 11 and Laravel 12.
License
liberu-genealogy/laravel-gedcom
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
liberu-genealogy/laravel-gedcom is a package to parseGEDCOM files, and import themas Laravel models, inside your Laravel application. It is used by:(https://github.com/liberu-genealogy/genealogy-laravel)
- laravel-gedcom 5.0+ requires PHP 8.3 (or later).
- laravel-gedcom 6.0+ requires PHP 8.4 (or later).
composer require liberu-genealogy/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.
Theparse()
method takes three parameters,string $filename
,bool $progressBar = false
andstring $conn
If you set$progressBar
to true, a ProgressBar will be output tophp://stdout
, which is useful when you are callingthe parser from Artisan commands.
Pull requests are welcome, as are issues. Feel free to submit any feedback too.
MIT License (see License.md). This means you must retain the copyright and permission notice is all copies, orsubstantial portions of this software.
About
Gedcom reading and writing for Laravel 10, Laravel 11 and Laravel 12.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.