Download the PHP package familytree365/php-gedcom without Composer
On this page you can find all versions of the php package familytree365/php-gedcom. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download familytree365/php-gedcom
More information about familytree365/php-gedcom
Files in familytree365/php-gedcom
Package php-gedcom
Short Description A GEDCOM file parser (read + write) for PHP 8.0+
License MIT
Homepage http://github.com/familytree365/php-gedcom
Informations about the package php-gedcom
php-gedcom
Requirements
- php-gedcom 1.0+ requires PHP 8.3 (or later).
Installation
There are two ways of installing php-gedcom.
Composer
To install php-gedcom in your project using composer, simply add the following require line to your project's composer.json
file:
{
"require": {
"laravel-liberu/php-gedcom": "1.0.*"
}
}
Download and __autoload
If you are not using composer, you can download an archive of the source from GitHub and extract it into your project. You'll need to setup an autoloader for the files, unless you go through the painstaking process if requiring all the needed files one-by-one. Something like the following should suffice:
Usage
To parse a GEDCOM file and load it into a collection of PHP Objects, simply instantiate a new Parser object and pass it the file name to parse. The resulting Gedcom object will contain all the information stored within the supplied GEDCOM file: