mborko/simple-oai-pmh
Composer 安装命令:
composer create-project mborko/simple-oai-pmh
包简介
This is a stand-alone and easy to install data provider implementing the Open Archives Initiative's Protocol for Metadata Harvesting (OAI-PMH).
README 文档
README
This is a stand-alone and easy to install data provider implementing the Open Archives Initiative's Protocol for Metadata Harvesting (OAI-PMH). It serves records in any metadata format from directories of XML files using the directory name as metadataPrefix, the filename as identifier and the filemtime as timestamp. 0-byte files are considered deleted records and handled accordingly. Resumption tokens are managed using files. Sets are currently not supported.
Just put the records as XML files in the data directory, adjust a few configuration settings and you are ready to go!
A demo installation can be found here.
Installation
-
Run
composer create-project opencultureconsulting/simple-oai-pmh <path>. -
Create a data directory in a location not publicly accessible (i. e. outside of
<path>). Create a subdirectory inside the specified data directory for every format (i. e.metadataPrefix) you want to provide. -
Copy
Configuration/Main.template.phptoConfiguration/Main.phpand edit the settings according to your preferences. Don't forget pointing$config['dataDirectory']to your newly created data directory. -
Put the records into the respective directories according to their format. Each record has to be a separate XML file with its
identifieras filename (e. g. the file 12345678.xml can be adressed using theidentifier12345678). Optionally you can maintain deletions by keeping 0-byte files for deleted records. -
Congratulations! Now you are running your own Simple OAI-PMH 2.0 Data Provider. You can access the entry point by calling
index.php?verb=Identifyin your browser.
Upgrading
-
Backup
Configuration/Main.php! -
Delete
<path>and re-install by runningcomposer create-project opencultureconsulting/simple-oai-pmh <path>. -
Move your configuration back into
Configuration/Main.php. -
Congratulations! Now you are running the newest version of the Simple OAI-PMH 2.0 Data Provider. You can access the entry point by calling
index.php?verb=Identifyin your browser.
Updating
Updating your records is just as easy with the update.php script! The script automatically handles deletions by maintaining 0-byte files for deleted records. Just call php update.php from the command line and follow the instructions. (Of course, you can simply replace the records manually as well.)
History
This project was originally initiated in 2002 by Heinrich Stamerjohanns at University of Oldenburg. His latest implementation can still be found via the Internet Archive's Wayback Machine.
It was then modified in 2011 by Jianfeng Li at University of Adelaide for The Plant Accelerator. The modified version can be found in the Google Code Archive.
In 2013 Daniel Neis Araujo at Federal University of Santa Catarina modified the project again in order to integrate it with Moodle. His implementation can be found on GitHub. In 2014 Kazimierz Pietruszewski provided some further bugfixes.
The current implementation was derived from the latter in 2017 by Sebastian Meyer at Open Culture Consulting for the German Literature Archive. It is a stand-alone version focused on easy deployment and file based record handling.
Sources
mborko/simple-oai-pmh 适用场景与选型建议
mborko/simple-oai-pmh 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 01 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「repository」 「OAI」 「OAI-PMH」 「data-provider」 「code4lib」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mborko/simple-oai-pmh 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mborko/simple-oai-pmh 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mborko/simple-oai-pmh 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PHP OAI-PMH 2.0 Harvester library
Open API 3.0 builder and validation library for PHP that helps you write valid specs.
repository php library
Loads routes in Symfony based on OpenAPI/Swagger annotations
OAI bundle for PuMuKIT
Laravel 5 - Repositories to the database layer
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2025-01-02