jpcaparas/randopedia
最新稳定版本:1.0.1
Composer 安装命令:
composer require jpcaparas/randopedia
包简介
Fetch random articles from Wikipedia
README 文档
README
Randopedia is a simple PHP library that fetches random articles from Wikipedia using their REST API.
Features
- Fetch multiple random articles in parallel.
- Blacklist mechanism to avoid fetching articles based on specific keywords.
- Integration with Wikipedia's REST API.
Installation
composer require jpcaparas/randopedia
Usage
use JPCaparas\Randopedia\Fetcher; $fetcher = new Fetcher(); $articles = $fetcher->fetchRandomArticles(5, ['exclude_keyword1', 'exclude_keyword2']);
Tests
Running Integration Tests
Integration tests will hit the live Wikipedia API. To run the integration tests:
vendor/bin/phpunit --testsuite Integration
Please note: Running integration tests frequently may hit rate limits.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-20