Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to various parts. #5

Open
wants to merge 150 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
7365ef1
update composer.json/README.md: adapt to forking: rename ‘geneanet’ t…
skypal Apr 17, 2017
9b04203
fix doc comments so phpstorm will know return types
skypal Apr 17, 2017
f3ea2fd
add INDI._UID handling: parse UUID and add mapping from UUID to INDI …
skypal Apr 17, 2017
e1ba9b6
INDI + FAM: make event and attribute records accessable by key; disti…
Apr 22, 2017
8295a7b
fix bug: reset _lineRecord cache if number of requestest pieces doesn…
skypal Jul 4, 2017
837ee77
Fix
Jul 3, 2018
2e36e1c
Correct Mistake
Jul 3, 2018
984d0ac
Fixed
Jul 3, 2018
16d7841
Fix
Jul 3, 2018
1b36c6b
IndFix
Jul 3, 2018
5e16909
IndFix2
Jul 3, 2018
7fc9b4a
FamFix
Jul 3, 2018
2d1f842
ParserFix
Jul 3, 2018
34ca638
ParserFix2
Jul 3, 2018
80a4be3
ParserFix3
Jul 3, 2018
1de94e1
First Publish
Jul 4, 2018
4df0fd8
Publish
Jul 4, 2018
631e696
Published
Jul 4, 2018
dcbea36
Set record index 2 to empty string if we have no data for it. Elimina…
juliolopez78 Jan 29, 2019
c1007b4
Merge pull request #1 from juliolopez78/fix-php-name-parsing-notices
oguz463 Feb 8, 2019
ce8efa0
Check for attr and event before writing
juliolopez78 Feb 11, 2019
4303e2b
Fix typo
juliolopez78 Feb 11, 2019
e6cb389
Update PHP Doc
juliolopez78 Feb 11, 2019
8f0af84
Fix attr event overwriting (#2)
juliolopez78 Mar 7, 2019
9b00670
Add `_attr` property to EVEN Record to capture data from incoming record
juliolopez78 May 30, 2019
1115163
Repaired items broken in php 7.3
litui Jun 22, 2019
124cd66
adding missing methods and improvements if data is missing in gedcom
tlesseli Apr 13, 2020
bb775f4
update of composer
tlesseli Apr 13, 2020
aba187f
Merge remote-tracking branch 'origin/pr/2'
curtisdelicata May 10, 2020
279b47d
Merge remote-tracking branch 'origin/pr/3'
curtisdelicata May 10, 2020
f0fbc6f
Merge remote-tracking branch 'origin/pr/4'
curtisdelicata May 10, 2020
63da274
Merge remote-tracking branch 'origin/pr/5'
curtisdelicata May 10, 2020
5a2e7d1
Fix pull request merges
curtisdelicata May 10, 2020
6d00ec9
Update README
curtisdelicata May 10, 2020
7975452
Update composer
curtisdelicata May 10, 2020
0850887
finish Writer/Indi
jyyblue Jun 16, 2020
feadb71
complete indi/event
jyyblue Jun 17, 2020
d398595
complete indi and realted writer
jyyblue Jun 17, 2020
0d6a8a6
add Subn Writer
jyyblue Jun 17, 2020
4109049
add Subm writer
jyyblue Jun 17, 2020
4d038c8
add Sour related writer.
jyyblue Jun 17, 2020
d85e70f
fix identifier issue
jyyblue Jun 17, 2020
8b8652e
add fam and realted writers
jyyblue Jun 18, 2020
57dcb91
add Repo and related writer
jyyblue Jun 18, 2020
4cd2125
ADD OBJE AND RELATED WRITER
jyyblue Jun 18, 2020
c1e846b
add Head and related writer
jyyblue Jun 18, 2020
15eb72f
CHECK AGAIN WRITER & FIX SMALL ISSUES
jyyblue Jun 18, 2020
30304b0
Update composer.json
curtisdelicata Jun 18, 2020
166a7b1
fix some bug
jyyblue Jun 20, 2020
f3af343
Fix import gedcom issues.
jyyblue Jun 22, 2020
a96453b
change NAME to FAMS, FAMC in writer.
jyyblue Jun 22, 2020
178d9d5
Change namespace for PSR-0
curtisdelicata Jun 22, 2020
2eec704
Fix Record getData _text
vfftech Jul 22, 2020
73269ea
fix record according to standard document.
jyyblue Aug 18, 2020
f944747
modify phpgedcom-parser according to standard 5.5.1 document.
jyyblue Aug 20, 2020
229b4e1
.working.y phpgedcom-importer according to standard 5.5.1 document.
jyyblue Aug 24, 2020
126c2c0
working import
jyyblue Aug 30, 2020
dba9048
working on gedcom importer
jyyblue Aug 31, 2020
34c9bb5
worked import
jyyblue Sep 2, 2020
96db638
fix issue in import
jyyblue Sep 3, 2020
32fd88e
fix import issue
jyyblue Sep 4, 2020
2024022
Update license according to master fork changing to MIT from GPL-3.0.…
curtisdelicata Sep 7, 2020
5c8794c
Update PHP version in README.md
curtisdelicata Sep 7, 2020
39d80f9
Add status badges
curtisdelicata Sep 7, 2020
8c3fed3
Status badge for StyleCI
curtisdelicata Sep 7, 2020
6a7148a
Status badge for StyleCI
curtisdelicata Sep 7, 2020
82d04f2
Apply fixes from StyleCI
curtisdelicata Sep 11, 2020
09585e5
Merge pull request #1 from modularsoftware/analysis-wj5bbe
curtisdelicata Sep 11, 2020
e1d8bd9
Create FUNDING.yml
curtisdelicata Sep 14, 2020
7129fb2
Fix import for Geni files. Thanks to the fork commit by Execut on Git…
curtisdelicata Sep 17, 2020
46bd58d
Merge remote-tracking branch 'origin/master' into master
curtisdelicata Sep 17, 2020
38d4a1b
Apply fixes from StyleCI
curtisdelicata Sep 17, 2020
c6bc5aa
Merge pull request #2 from modularsoftware/analysis-OMRb74
curtisdelicata Sep 17, 2020
77d18ca
Update package name.
curtisdelicata Sep 21, 2020
9aff1f3
Merge remote-tracking branch 'origin/master' into master
curtisdelicata Sep 21, 2020
e57c982
Update package name.
curtisdelicata Sep 26, 2020
ba7c7ca
Add LICENSE.md
curtisdelicata Oct 5, 2020
acf387e
Update FUNDING.yml
curtisdelicata Oct 5, 2020
85f0705
Fix PhpGedcom\Record\Map properties name
Apr 22, 2021
346a8a7
Merge pull request #3 from dench0/master
curtisdelicata Apr 24, 2021
88c5d3c
Fix PhpGedcom\Writer\Indi\Famc wrong function invocation
May 21, 2021
cff05cf
Merge branch 'familytree365:master' into master
dench0 May 21, 2021
557bf00
Fix even writer date export
May 21, 2021
960fc2c
Fix indi even processing
May 21, 2021
e7ba10c
Merge pull request #6 from dench0/master
curtisdelicata May 21, 2021
63c856a
Merge pull request #8 from dench0/fix_event_witer_date_export
curtisdelicata May 21, 2021
2a53a5c
Merge pull request #10 from dench0/fix_indi_even_processing
curtisdelicata May 21, 2021
0df1c8b
Add special event processing for some event types
May 21, 2021
0a03304
Add special event processing for some event types
May 21, 2021
22971cf
Merge pull request #12 from dench0/add_special_processing_for_some_ev…
curtisdelicata May 21, 2021
90ef6b5
CONTRIBUTE.md
curtisdelicata May 22, 2021
1d3ae74
CONTRIBUTE.md
curtisdelicata May 23, 2021
63882da
Package name.
curtisdelicata May 27, 2021
4bd21d3
Fix multiple typos in diff Writer classes
May 29, 2021
f2d627e
Merge pull request #14 from dench0/multiple_typos_in_the_writer_classes
curtisdelicata May 29, 2021
70a2229
Apply fixes from StyleCI
curtisdelicata Jul 14, 2021
c24dcb2
Merge pull request #22 from familytree365/analysis-5ZL4RW
curtisdelicata Jul 14, 2021
70faf16
update
xeanu Jul 15, 2021
c37436c
update
xeanu Jul 15, 2021
ce52b9b
Merge pull request #23 from xeanu/master
curtisdelicata Jul 16, 2021
a56c00a
Update PSR4.
curtisdelicata Jul 17, 2021
9d03034
Update PSR4.
curtisdelicata Jul 17, 2021
ff9071d
Update PSR4.
curtisdelicata Jul 17, 2021
e94d460
Update PSR4.
curtisdelicata Jul 17, 2021
f9abe7f
Update PSR4.
curtisdelicata Jul 17, 2021
48083b5
Update PSR4.
curtisdelicata Jul 17, 2021
6e84a3f
Update PSR4.
curtisdelicata Jul 17, 2021
1407645
Update PSR4.
curtisdelicata Jul 17, 2021
8c93948
Update PSR4.
curtisdelicata Jul 17, 2021
c022675
Update PSR4.
curtisdelicata Jul 17, 2021
baad49a
Update PSR4.
curtisdelicata Jul 17, 2021
56a5a12
Update PSR4.
curtisdelicata Jul 17, 2021
6e1be72
Update PSR4.
curtisdelicata Jul 17, 2021
485994e
Update PSR4.
curtisdelicata Jul 17, 2021
3aa2ca6
Update PSR4.
curtisdelicata Jul 17, 2021
9960148
Update PSR4.
curtisdelicata Jul 17, 2021
5d6ecbf
Update PSR4.
curtisdelicata Jul 18, 2021
6d289d5
PHP 8.0
curtisdelicata Aug 23, 2021
dc91086
Fix error when import gedcom file
heru0502 Aug 25, 2021
c7f1dbd
Merge pull request #26 from familytree365/fix/gedcom_import_export
curtisdelicata Aug 25, 2021
5d71595
Update README.md
curtisdelicata Aug 25, 2021
c0c9904
Apply fixes from StyleCI
curtisdelicata Aug 25, 2021
82be039
Merge pull request #27 from familytree365/analysis-1b75j1
curtisdelicata Aug 25, 2021
e212341
Fix fillable birthday, deathday, and burialday
heru0502 Aug 25, 2021
adc6a02
Fix fillable nick, type, and chan
heru0502 Aug 25, 2021
efd76b9
Merge branch 'master' of https://github.com/familytree365/php-gedcom …
heru0502 Aug 25, 2021
a7be7ed
Merge pull request #28 from familytree365/fix/gedcom_import_export
curtisdelicata Aug 25, 2021
a4f894e
Fix error export and fill name, birthday, deathday, burial day, gid, …
heru0502 Aug 26, 2021
3f892b3
Merge pull request #29 from familytree365/fix/gedcom_import_export
curtisdelicata Aug 27, 2021
b6ced1a
Fix not filled for birt dati, birt plac, deat dati, deat plac, deat c…
heru0502 Aug 27, 2021
ca48496
Merge pull request #30 from familytree365/fix/gedcom_import_export
curtisdelicata Aug 27, 2021
71734f6
Fix Titl error and fix not filled for titl, fams, famc, and chr when …
heru0502 Aug 27, 2021
698ad91
Merge pull request #31 from familytree365/fix/gedcom_import_export
curtisdelicata Aug 27, 2021
0099602
Fix add family when export gedcom
heru0502 Aug 29, 2021
0c715bd
Merge pull request #32 from familytree365/fix/gedcom_import_export
curtisdelicata Aug 30, 2021
227130c
Apply fixes from StyleCI
curtisdelicata Sep 19, 2021
8987169
Merge pull request #33 from familytree365/analysis-vQvQmv
curtisdelicata Sep 19, 2021
c73c527
prefix issue fix
webstar1027 Sep 27, 2021
8adece7
Merge pull request #34 from familytree365/prefix-issue-fix
curtisdelicata Sep 27, 2021
f0490bf
some issues fix
webstar1027 Sep 28, 2021
e80917b
Merge pull request #35 from familytree365/prefix-issue-fix
curtisdelicata Sep 29, 2021
e79eeca
Fix namespace.
curtisdelicata Oct 16, 2021
c022d4e
Update Even.php
curtisdelicata Oct 25, 2021
2a43365
Update Even.php
curtisdelicata Oct 26, 2021
b4dcf82
Apply fixes from StyleCI
curtisdelicata Oct 26, 2021
f62333f
Merge pull request #37 from familytree365/analysis-M1EL1M
curtisdelicata Oct 26, 2021
9ba4b7e
Undefined bug fix
Nov 28, 2021
0ead943
Merge pull request #38 from sulemaanhamza/master
curtisdelicata Nov 28, 2021
830965e
Update FUNDING.yml
curtisdelicata Aug 23, 2022
d45a8de
Update composer.json
curtisdelicata Dec 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: familytree365
11 changes: 11 additions & 0 deletions CONTRIBUTE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Contributing

Contributions are **welcome** and will be fully **credited**. We accept contributions via Pull Requests on [Github](https://github.com/familytree365/php-gedcom).

## Pull Requests

- **[PSR-4 Coding Standard.]** The easiest way to apply the conventions is to install [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer).
- **Document any change in behaviour.** Make sure the `README.md` and any other relevant documentation are kept up-to-date.
- **Create feature branches.** Don't ask us to pull from your master branch.
- **One pull request per feature.** If you want to do more than one thing, send multiple pull requests.
- **Send coherent history.** Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
5 changes: 5 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 changes: 19 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# php-gedcom
![Latest Stable Version](https://img.shields.io/github/release/familytree365/php-gedcom.svg)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/familytree365/php-gedcom/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/familytree365/php-gedcom/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/familytree365/php-gedcom/badges/build.png?b=master)](https://scrutinizer-ci.com/g/familytree365/php-gedcom/build-status/master)
[![Code Intelligence Status](https://scrutinizer-ci.com/g/familytree365/php-gedcom/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)
[![StyleCI](https://github.styleci.io/repos/262784020/shield?branch=master)](https://github.styleci.io/repos/262784020)
[![CodeFactor](https://www.codefactor.io/repository/github/familytree365/php-gedcom/badge/master)](https://www.codefactor.io/repository/github/familytree365/php-gedcom/overview/master)
[![codebeat badge](https://codebeat.co/badges/911f9e33-212a-4dfa-a860-751cdbbacff7)](https://codebeat.co/projects/github-com-modularphp-gedcom-php-gedcom-master)
[![Build Status](https://travis-ci.org/familytree365/php-gedcom.svg?branch=master)](https://travis-ci.org/familytree365/php-gedcom)




## Requirements

* php-gedcom 1.0+ requires PHP 5.3 (or later).
* php-gedcom 1.0+ requires PHP 8.0 (or later).

## Installation

Expand All @@ -14,7 +25,7 @@ To install php-gedcom in your project using composer, simply add the following r

{
"require": {
"geneanet/php-gedcom": "1.0.*"
"familytree365/php-gedcom": "1.0.*"
}
}

Expand All @@ -24,15 +35,15 @@ If you are not using composer, you can download an archive of the source from Gi

```php
spl_autoload_register(function ($class) {
$pathToPhpGedcom = __DIR__ . '/library/'; // TODO FIXME
$pathToGedcom = __DIR__ . '/library/'; // TODO FIXME

if (!substr(ltrim($class, '\\'), 0, 7) == 'PhpGedcom\\') {
if (!substr(ltrim($class, '\\'), 0, 7) == 'Gedcom\\') {
return;
}

$class = str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php';
if (file_exists($pathToPhpGedcom . $class)) {
require_once($pathToPhpGedcom . $class);
if (file_exists($pathToGedcom . $class)) {
require_once($pathToGedcom . $class);
}
});
```
Expand All @@ -42,8 +53,8 @@ spl_autoload_register(function ($class) {
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:

```php
$parser = new \PhpGedcom\Parser();
$gedcom = $parser->parse('tmp\gedcom.ged');
$parser = new \Gedcom\Parser();
$gedcom = $parser->parse('tmp.ged');

foreach ($gedcom->getIndi() as $individual) {
echo $individual->getId() . ': ' . current($individual->getName())->getSurn() .
Expand Down
26 changes: 16 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
{
"name": "geneanet/php-gedcom",
"description": "A GEDCOM file parser (read + write) for PHP 5.3+",
"type": "library",
"name": "cgdprojects/php-gedcom",
"description": "A GEDCOM file parser (read + write) for PHP 8.0+",
"type": "library",
"keywords": ["gedcom","parser"],
"homepage": "http://github.com/geneanet/php-gedcom",
"license": "GPL-3.0",
"homepage": "http://github.com/familytree365/php-gedcom",
"license": "MIT",
"require": {
"php": ">=5.3"
"php": ">=8.0"
},
"require-dev": {
"phpunit/PHPUnit": "3.7.*",
"squizlabs/php_codesniffer": "1.*"
"phpunit/phpunit": "9.*",
"squizlabs/php_codesniffer": "3.6.*",
"rector/rector": "^0.11.49"
},
"autoload": {
"psr-0": {
"PhpGedcom\\": "library/"
"psr-4": {
"Gedcom\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"GedcomTest\\": "tests/"
}
}
}
Loading