Download the PHP package asdfx/laravel-gedcom without Composer
On this page you can find all versions of the php package asdfx/laravel-gedcom. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download asdfx/laravel-gedcom
More information about asdfx/laravel-gedcom
Files in asdfx/laravel-gedcom
Package laravel-gedcom
Short Description A package that converts gedcom files to Eloquent models
License MIT
Informations about the package laravel-gedcom
GEDCOM to Laravel Model
asdfx/laravel-gedcom is a package to parse GEDCOM files, and import them as Laravel models, inside your Laravel application.
Installation
Usage
You must create the database schema before doing anything, so run the migrations:
via Command Line
via Facade
via Instantiation
Documentation
Database
This package will create the following database tables, which map to models:
- places ->
Asdfx\LaravelGedcom\Models\Place
- persons ->
Asdfx\LaravelGedcom\Models\Person
- person_events ->
Asdfx\LaravelGedcom\Models\PersonEvent
- families
Asdfx\LaravelGedcom\Models\Family
- family_events
Asdfx\LaravelGedcom\Models\FamilyEvents
parse()
Method
The parse()
method takes two parameters, string $filename
, and bool $progressBar = false
.
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.
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.
All versions of laravel-gedcom with dependencies
illuminate/support Version ^5.5
illuminate/database Version ^5.5