wikibase/data-model
Composer 安装命令:
composer require wikibase/data-model
包简介
PHP implementation of the Wikibase DataModel
关键字:
README 文档
README
Wikibase DataModel is the canonical PHP implementation of the Data Model at the heart of the Wikibase software.
It is primarily used by the Wikibase MediaWiki extensions, though has no dependencies whatsoever on these or on MediaWiki itself.
Recent changes can be found in the release notes.
Note that this repository is a mirror of part of the upstream Wikibase project on Gerrit. Contributions should be made to the directories there using MediaWiki's Gerrit process.
Installation
You can use Composer to download and install this package as well as its dependencies. Alternatively you can simply clone the git repository and take care of loading yourself.
Composer
To add this package as a local, per-project dependency to your project, simply add a
dependency on wikibase/data-model to your project's composer.json file.
Here is a minimal example of a composer.json file that just defines a dependency on
Wikibase DataModel 9.x:
{ "require": { "wikibase/data-model": "~9.0" } }
Manual
Get the Wikibase DataModel code, either via git, or some other means. Also get all dependencies. You can find a list of the dependencies in the "require" section of the composer.json file. The "autoload" section of this file specifies how to load the resources provide by this library.
Library contents
This library contains domain objects that implement the concepts part of the Wikibase DataModel. This mainly includes simple value objects, though also contains core domain logic either bound to such objects or encapsulated as service objects.
Tests
This library comes with a set up PHPUnit tests that cover all non-trivial code. Additionally, code
style checks by PHPCS and PHPMD are supported. The configuration for all 3 these tools can be found
in the root directory. You can use the tools in their standard manner, though can run all checks
required by our CI by executing composer ci. To just run tests use composer test, and to just
run style checks use composer cs.
Contributing
This repository is a mirror of part of the upstream Wikibase project on Gerrit. Contributions should be made to the directories there using MediaWiki's Gerrit process.
Credits
Development
Wikibase DataModel has been written by Jeroen De Dauw and Thiemo Kreuz as Wikimedia Germany employees for the Wikidata project.
Contributions were also made by several other people.
Concept
The initial conceptual specification for the DataModel was created by Markus Krötzsch and Denny Vrandečić, with minor contributions by Daniel Kinzler and Jeroen De Dauw.
Links
- Wikibase DataModel on Packagist
- Wikibase DataModel on Ohloh
- Wikibase DataModel on TravisCI
- Wikibase DataModel on Wikimedia's Phabricator
See also
wikibase/data-model 适用场景与选型建议
wikibase/data-model 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 245.48k 次下载、GitHub Stars 达 37, 最近一次更新时间为 2013 年 06 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wikibase」 「wikidata」 「DataModel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 wikibase/data-model 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wikibase/data-model 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 wikibase/data-model 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Serializers and deserializers for the Wikibase DataModel
Services around the Wikibase DataModel
Serializers and deserializers for the data access layer of Wikibase Repository
A PHP client for working with Wikidata API.
Adds the EDTF data type to Wikibase
Provides line-by-line readers and iterators for Wikibase/Wikidata JSON dumps
统计信息
- 总下载量: 245.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 40
- 点击次数: 15
- 依赖项目数: 26
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2013-06-13