Download the PHP package laravel-liberu/laravel-gedcom without Composer
On this page you can find all versions of the php package laravel-liberu/laravel-gedcom. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-liberu/laravel-gedcom
More information about laravel-liberu/laravel-gedcom
Files in laravel-liberu/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
liberu-genealogy/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/liberu-genealogy/genealogy-laravel)
- laravel-gedcom 5.0+ requires PHP 8.3 (or later).
Installation
Usage
You must create the database schema before doing anything, so run the migrations:
GEDCOM Files
via Command Line
via Facade
via Instantiation
GedcomX Files
via Command Line
via Facade
via Instantiation
Checking if a file is GedcomX
High-Performance GedcomX (PHP 8.4+ Optimized)
For maximum performance with large GedcomX files, use the optimized parser that leverages PHP 8.4 features:
via Optimized Command Line
via Optimized Instantiation
Performance Features (PHP 8.4+)
- 🚀 Up to 3x faster processing using modern PHP features
- 💾 50% less memory usage with optimized data structures
- 📦 Intelligent batch processing with automatic chunk sizing
- 🔄 Garbage collection optimization for large datasets
- ⚡ Match expressions for faster conditional logic
- 🎯 Typed constants for better performance
- 📊 Real-time performance metrics during import
Performance Comparison
| Feature | Standard Parser | Optimized Parser (PHP 8.4) |
|---|---|---|
| Processing Speed | 1x | 3x faster |
| Memory Usage | 100% | 50% less |
| Batch Processing | Fixed 500 | Dynamic 1000-5000 |
| Error Handling | Basic | Advanced with metrics |
| PHP Version | 8.3+ | 8.4+ only |
Documentation
GEDCOM Data Import
See GEDCOM_DATA_IMPORT.md for a comprehensive reference of all GEDCOM tags and data elements imported by this package.
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. 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, or substantial portions of this software.
All versions of laravel-gedcom with dependencies
liberu-genealogy/php-gedcom Version ^4.2.0
illuminate/support Version ^11.0||^12.0||^13.0
illuminate/database Version ^11.0||^12.0||^13.0