https://github.com/cgdsoftware/laravel-gedcom
Package to parse GEDCOM files, and import them into Laravel. Export GEDCOM 5.5.1 files from Laravel.
https://github.com/cgdsoftware/laravel-gedcom
gedcom gedcom-parser genealogy laravel php php-library php8
Last synced: about 22 hours ago
JSON representation
Package to parse GEDCOM files, and import them into Laravel. Export GEDCOM 5.5.1 files from Laravel.
- Host: GitHub
- URL: https://github.com/cgdsoftware/laravel-gedcom
- Owner: cgdsoftware
- License: mit
- Fork: true (agjmills/laravel-gedcom)
- Created: 2020-06-01T13:43:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-08T09:44:30.000Z (over 2 years ago)
- Last Synced: 2025-09-25T20:34:16.672Z (12 days ago)
- Topics: gedcom, gedcom-parser, genealogy, laravel, php, php-library, php8
- Language: PHP
- Homepage: https://www.facebook.com/familytree365
- Size: 339 KB
- Stars: 22
- Watchers: 1
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# GEDCOM to Laravel Model

[](https://scrutinizer-ci.com/g/familytree365/laravel-gedcom/?branch=master)
[](https://scrutinizer-ci.com/g/familytree365/laravel-gedcom/build-status/master)
[](https://scrutinizer-ci.com/code-intelligence)
[](https://github.styleci.io/repos/268533904)
[](https://www.codefactor.io/repository/github/familytree365/laravel-gedcom/overview/master)
[](https://codebeat.co/projects/github-com-modulargenealogy-gedcom-laravel-gedcom-master)
[](https://travis-ci.org/familytree365/laravel-gedcom)familytree365/laravel-gedcom is a package to parse [GEDCOM](https://en.wikipedia.org/wiki/GEDCOM) files, and import them
as Laravel models, inside your Laravel application. It is used by:
(https://github.com/familytree365/genealogy)## Installation
```
composer require familytree365/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
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.## Contributing
Pull requests are welcome, as are issues.
## Contributors
## License
MIT License (see License.md). This means you must retain the copyright and permission notice is all copies, or
substantial portions of this software.