承接 professional-wiki/wikibase-export 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

professional-wiki/wikibase-export

Composer 安装命令:

composer require professional-wiki/wikibase-export

包简介

Adds a user-friendly Wikibase export page

README 文档

README

GitHub Workflow Status Type Coverage Psalm level Latest Stable Version Download count License

Wikibase extension for exporting data as simple CSV.

Professional Wiki created and maintains Wikibase Export. We provide Wikibase hosting, Wikibase development, and Wikibase consulting.

Table of Contents

Demo

Quickly get an idea about what this extension does by checking out the demo wiki or demo video.

Usage documentation

See the usage documentation.

REST API

This extension provides a REST API endpoint for exporting Wikibase items.

For more information, refer to the REST API documentation.

Installation

Platform requirements:

  • PHP 8.0 or later (tested up to 8.4)
  • MediaWiki 1.37 or later (tested up to 1.43) (versions 1.37 and 1.38 require Wikibase Export 1.0.0)
  • Wikibase 1.37 or later (tested up to 1.43)

The recommended way to install Wikibase Export is using Composer with MediaWiki's built-in support for Composer.

On the commandline, go to your wikis root directory. Then run these two commands:

COMPOSER=composer.local.json composer require --no-update professional-wiki/wikibase-export:~1.0
composer update professional-wiki/wikibase-export --no-dev -o

Then enable the extension by adding the following to the bottom of your wikis LocalSettings.php file:

wfLoadExtension( 'WikibaseExport' );

You can verify the extension was enabled successfully by opening your wikis Special:Version page.

PHP Configuration

Configuration can be changed via LocalSettings.php.

Export configuration

In JSON format, following the JSON Schema at schema.json. Gets combined with rules defined on page MediaWiki:WikibaseExport.

Variable: $wgWikibaseExport

Default: ""

Example: example.json

Caution: invalid JSON will be ignored. No error will be shown, the intended config will just not be applied.

Enable in-wiki configuration

If it should be possible to configure this extension via MediaWiki:WikibaseExport.

Variable: $wgWikibaseExportEnableInWikiConfig

Default: true

Example: false

The page MediaWiki:WikibaseExport will always be available. If this configuration is set to false, its contents will be ignored.

Development

To ensure the dev dependencies get installed, have this in your composer.local.json:

{
	"require": {
		"vimeo/psalm": "^4",
		"phpstan/phpstan": "^1.8.11"
	},
	"extra": {
		"merge-plugin": {
			"include": [
				"extensions/WikibaseExport/composer.json"
			]
		}
	}
}

Running tests and CI checks

You can use the Makefile by running make commands in the WikibaseExport directory.

  • make ci: Run everything
  • make test: Run all tests
  • make cs: Run all style checks and static analysis

Alternatively, you can execute commands from the MediaWiki root directory:

  • PHPUnit: php tests/phpunit/phpunit.php -c extensions/WikibaseExport/
  • Style checks: vendor/bin/phpcs -p -s --standard=extensions/WikibaseExport/phpcs.xml
  • PHPStan: vendor/bin/phpstan analyse --configuration=extensions/WikibaseExport/phpstan.neon --memory-limit=2G
  • Psalm: php vendor/bin/psalm --config=extensions/WikibaseExport/psalm.xml

Release notes

Version 2.0.1 - 2025-04-25

  • Fixed compatibility issue with MediaWiki 1.39 and 1.40, causing an error on Special:SpecialPages

Version 2.0.0 - 2025-04-14

  • Dropped support for MediaWiki older than 1.39
  • Added support for MediaWiki 1.40 up to 1.43
  • Added support for PHP up to 8.4

Version 1.0.0 - 2023-02-06

  • Special page with export UI
    • Language selector
    • Subject (entity) selector
    • Grouping and filtering by year based on point in time or time range qualifiers
    • Property selection for both grouped and ungrouped values
    • Header style choice: entity label or entity ID
  • Support for multiple values
  • Configuration that can be set via PHP and a configuration UI on MediaWiki:WikibaseExport
  • API endpoint for export
  • TranslateWiki integration
  • Support for PHP from 8.0 up to 8.2
  • Support for MediaWiki from 1.37 up to 1.39

professional-wiki/wikibase-export 适用场景与选型建议

professional-wiki/wikibase-export 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8.33k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2022 年 12 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「csv」 「export」 「mediawiki」 「wikibase」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 professional-wiki/wikibase-export 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 professional-wiki/wikibase-export 我们能提供哪些服务?
定制开发 / 二次开发

基于 professional-wiki/wikibase-export 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 8.33k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 22
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 6
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2022-12-15