magicsunday / webtrees-pedigree-chart
本模块为 [webtrees](https://www.webtrees.net) 家谱应用提供 SVG 家谱图。
Requires
- ext-dom: *
- ext-json: *
- fisharebest/webtrees: ~2.1.0
- magicsunday/webtrees-module-installer-plugin: ^1.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.50
- overtrue/phplint: ^3.4 || ^9.0
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^9.0 || ^10.0 || ^11.0
- rector/rector: ^1.0
This package is auto-updated.
Last update: 2024-08-31 17:56:51 UTC
README
家谱图
本模块为 webtrees 家谱应用提供 SVG 家谱图。它能够显示一个人的最多 25 代祖先。
但请注意,如果您选择过多的代数,可能会花费较长时间,甚至显著减慢您的系统。
安装
需要 webtrees 2.2。
有几种方法可以安装此模块。使用 composer 的方法适合有经验的用户,作为开发者,您也可以使用 git 获取仓库的副本。但是,对于所有其他用户,建议手动安装。
手动安装
要手动安装模块,请执行以下步骤
- 下载模块的最新 发布版。
- 将下载的文件上传到您的 Web 服务器。
- 将包解压缩到您的
modules_v4
目录。 - 将文件夹重命名为
webtrees-pedigree-chart
如果一切顺利,您应该在 modules_v4
目录中看到一个名为 webtrees-pedigree-chart
的子目录,其中包含解压缩的内容。
现在必须在 Webtrees 中激活此模块。
配置
前往您的安装的控制面板(管理部分),滚动到 模块
部分。点击 图表
(在 家谱
子部分中)。启用 家谱图
自定义模块(可选地禁用原始安装的家谱图模块)并保存您的设置。
使用方法
在图表菜单中,您将找到一个名为 家谱图
的新链接。使用提供的配置选项根据您的需求调整图表布局。
使用Composer
通常,要使用 composer 安装,只需从命令行运行以下命令,从 Webtrees 安装的根目录开始。
composer require magicsunday/webtrees-pedigree-chart --update-no-dev
模块将自动安装到您的 Webtrees 安装的 modules_v4
目录。
要删除模块,请运行
composer remove magicsunday/webtrees-pedigree-chart --update-no-dev
最新版本
如果您正在使用 Webtrees 的开发版本(主分支),可能还需要安装模块的开发版本。为此,请使用以下命令:
composer require magicsunday/webtrees-pedigree-chart:dev-master --update-no-dev
使用Git
如果您使用 git
,可以直接通过以下命令将当前主分支克隆到您的 modules_v4
目录:
git clone https://github.com/magicsunday/webtrees-pedigree-chart.git modules_v4/webtrees-pedigree-chart
开发
要构建/更新 JavaScript,请运行以下命令:
nvm install node
npm install --unsafe-perm --save-dev
npm run prepare
运行测试
composer update
composer ci:test
composer ci:test:php:phpstan
composer ci:test:php:lint
composer ci:test:php:rector