Skip to content

SVG based pedigree chart module for webtrees genealogy application.

License

Notifications You must be signed in to change notification settings

ddrury/webtrees-pedigree-chart

This branch is 97 commits behind magicsunday/webtrees-pedigree-chart:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b8534ac · Jan 11, 2023
May 2, 2022
Jan 23, 2021
Jan 11, 2023
Jun 15, 2022
Jan 7, 2021
Nov 15, 2018
Mar 15, 2021
Nov 15, 2018
Mar 15, 2021
May 2, 2022
May 2, 2022
Aug 23, 2020
May 2, 2022
Dec 24, 2021
Jan 6, 2021

Repository files navigation

Latest version License PHPStan PHPCodeSniffer CodeQL

Scrutinizer Code Quality Build Status Code Climate Issue Count

Pedigree chart

This module provides an SVG pedigree chart for the webtrees genealogy application. It is capable to display up to 25 ancestor generations of an individual.

pedigree-chart-3-generations Fig. 1: A five generations pedigree chart (drawn top to bottom)

pedigree-chart-5-generations Fig. 2: A five generations pedigree chart (drawn left to right)

Caution: If you are rendering a lot of generations it may take a while and even slow down your system.

Installation

Requires webtrees 2.1.

Using Composer

To install using composer, just run the following command from the command line at the root directory of your webtrees installation.

composer require magicsunday/webtrees-pedigree-chart:* --update-no-dev

The module will automatically install into the modules_v4 directory of your webtrees installation.

To remove the module run:

composer remove magicsunday/webtrees-pedigree-chart --update-no-dev

Using Git

If you are using git, you could also clone the current master branch directly into your modules_v4 directory by calling:

git clone https://github.com/magicsunday/webtrees-pedigree-chart.git modules_v4/webtrees-pedigree-chart

Manual installation

To manually install the module, perform the following steps:

  1. Download the latest release.
  2. Upload the downloaded file to your web server.
  3. Unzip the package into your modules_v4 directory.
  4. Rename the folder to webtrees-pedigree-chart

Enable module

Go to the control panel (admin section) of your installation and scroll down to the Modules section. Click on Charts (in subsection Genealogy). Enable the Pedigree chart custom module (optionally disable the original installed pedigree chart module) and save your settings.

control-panel-modules Fig. 3: Control panel - Module administration

Usage

At the charts' menu, you will find a new link called Pedigree chart. Use the provided configuration options to adjust the layout of the charts according to your needs.

Development

To build/update the javascript, run the following commands:

npm install --unsafe-perm --save-dev
npm run prepare

Run tests

composer update
vendor/bin/phpstan analyse -c phpstan.neon
vendor/bin/phpcs src/ --standard=PSR12

About

SVG based pedigree chart module for webtrees genealogy application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.4%
  • PHP 20.0%
  • HTML 8.0%
  • CSS 2.6%