Download the PHP package magicsunday/webtrees-pedigree-chart without Composer

On this page you can find all versions of the php package magicsunday/webtrees-pedigree-chart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package webtrees-pedigree-chart

Latest version License CI

Pedigree chart

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

But beware, if you select too many generations, it may take a while and even slow down your system significantly.

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

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

Installation

Requires webtrees 2.2.

There are several ways to install the module. The method using composer is suitable for experienced users, as a developer you can also use git to get a copy of the repository. For all other users, however, manual installation is recommended.

Manual installation

[!IMPORTANT] Download the right .zip file. Each GitHub release page lists two kinds of archive:

  • webtrees-pedigree-chart.zip — listed under Assets at the bottom of the release. This is the install-ready archive: it bundles the required vendor/ dependencies (such as webtrees-module-base).
  • "Source code (zip)" / webtrees-pedigree-chart-<version>.zip — auto-generated by GitHub from the tag. This is the raw source without bundled dependencies. Uploading it to modules_v4/ will fail with Trait/Interface "MagicSunday\Webtrees\ModuleBase\…" not found (or ModuleAssetUrlInterface not found).

Always pick the asset zip, never "Source code (zip)".

[!IMPORTANT] If a previous version of this module is already installed: delete the entire modules_v4/webtrees-pedigree-chart folder before extracting the new ZIP. Extracting on top of an existing folder leaves stale files behind that can clash with the new release — a common cause of Interface … not found errors right after an update.

To manually install the module, perform the following steps:

  1. Open the latest release page.
  2. Under Assets, download webtrees-pedigree-chart.zip.
  3. Upload the .zip file to your web server.
  4. Unzip the package into your modules_v4 directory.
  5. Rename the folder to webtrees-pedigree-chart.

If everything was successful, you should see a subdirectory webtrees-pedigree-chart with the unpacked content in the modules_v4 directory.

Then follow the steps described in usage.

Using Composer

Typically, to install with composer, just run the following command from the command line, from the root of your Webtrees installation.

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

To remove the module run:

Then follow the steps described in usage.

Latest version

If you are using the development version of Webtrees (main branch), you may also need to install the development version of the module. For this, please use the following command:

Using Git

Clone the repository into your modules_v4 directory (a Code → Download ZIP of the source works the same way):

A source checkout contains the module code only — it does not include the shared webtrees-module-base library, so on its own it fails with Trait "MagicSunday\Webtrees\ModuleBase\…" not found. Supply that library in one of two ways:

Way A — drop-in (no code change). Download webtrees-module-base and copy its src/ to the location this module's module.php already expects:

Way B — shared copy (one edit). Place webtrees-module-base next to this module in modules_v4/ (rename the extracted folder to webtrees-module-base), then point this module's module.php at it. A single shared copy then serves every magicsunday module installed this way:

[!IMPORTANT] Both ways are overwritten by every module update, so you must redo them after each upgrade. For a maintenance-free install without Composer, use the asset zip (it bundles all dependencies). Inside a Composer-managed webtrees, prefer composer require magicsunday/webtrees-pedigree-chart:dev-main — see Using Composer.

Update

To update to the latest version:

Configuration

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.

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.

Troubleshooting

Fatal error after a manual installation or update: Trait/Interface "MagicSunday\Webtrees\ModuleBase\…" not found (or ModuleAssetUrlInterface not found)

The chart does not appear / shows an error

Development

To build/update the JavaScript, you can either use a local Node.js installation or Docker.

Using Docker

No local Node.js installation required. Just run:

To watch for changes and rebuild automatically:

Using local Node.js

Run tests


All versions of webtrees-pedigree-chart with dependencies

PHP Build Version
Package Version
Requires php Version 8.3 - 8.5
ext-dom Version *
ext-json Version *
fisharebest/webtrees Version ~2.2.0
magicsunday/webtrees-module-base Version ^2.5
magicsunday/webtrees-module-installer-plugin Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package magicsunday/webtrees-pedigree-chart contains the following files

Loading the files please wait ...