Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Gedcom reading and writing for Laravel 10, Laravel 11 and Laravel 12.

License

NotificationsYou must be signed in to change notification settings

liberu-genealogy/laravel-gedcom

Repository files navigation

Latest Stable VersionTests

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).

Installation

composer require liberu-genealogy/laravel-gedcom

Usage

You must create the database schema before doing anything, so run the migrations:

php artisan migrate

via Command Line

php artisan gedcom:import /path/to/your/gedcom/file.ged

via Facade

use FamilyTree365\LaravelGedcom\Facades\GedcomParserFacade;$filename = '/path/to/your/gedcom/file.ged';GedcomParserFacade::parse($filename, true);

via Instantiation

use \FamilyTree365\LaravelGedcom\Utils\GedcomParser;$filename = '/path/to/your/gedcom/file.ged';$parser = new GedcomParser();$parser->parse($filename, true);

Documentation

Database

This package will create the database tables, which map to models.

parse() Method

Theparse() method takes three parameters,string $filename,bool $progressBar = falseandstring $connIf you set$progressBar to true, a ProgressBar will be output tophp://stdout, which is useful when you are callingthe parser from Artisan commands.

Contributing

Pull requests are welcome, as are issues. Feel free to submit any feedback too.

Contributors

License

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

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors20


[8]ページ先頭

©2009-2025 Movatter.jp