承接 jpcaparas/randopedia 相关项目开发

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

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

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-20