PHPackages                             casinelli/wikipedia - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. casinelli/wikipedia

ActiveLibrary[API Development](/categories/api)

casinelli/wikipedia
===================

Laravel package to query Wikipedia

1310.1k11[1 PRs](https://github.com/Casinelli/Laravel-Wikipedia/pulls)PHP

Since Apr 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Casinelli/Laravel-Wikipedia)[ Packagist](https://packagist.org/packages/casinelli/wikipedia)[ RSS](/packages/casinelli-wikipedia/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Wikipedia
=========

[](#wikipedia)

### Installation

[](#installation)

Begin by installing this package through Composer.

```
{
    "require": {
        "casinelli/wikipedia": "dev-master"
    }
}
```

### Usage

[](#usage)

**Retrieve page extract**

```
$wikipedia = new \Casinelli\Wikipedia\Wikipedia;

return $wikipedia->search("Rome")->getSentences(5);
```

**Same with QueryBuilder**

```
$qb = new \Casinelli\Wikipedia\QueryBuilder;

$qb->setFormat("php");
$qb->setTitles("Singapore");
$qb->setExtractsSentences(3);
$qb->setExtractsPlainText(true);

$response = unserialize( $qb->fetch() );

$page = reset( $response["query"]["pages"] );

return $page["extract"];
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/33734d2ae6af79b0ab00f7e48012325d3f8114d7c2f1410580ad1ca67637f86c?d=identicon)[Casinelli](/maintainers/Casinelli)

---

Top Contributors

[![Casinelli](https://avatars.githubusercontent.com/u/3205510?v=4)](https://github.com/Casinelli "Casinelli (13 commits)")[![chrismou](https://avatars.githubusercontent.com/u/319883?v=4)](https://github.com/chrismou "chrismou (3 commits)")[![berteltorp](https://avatars.githubusercontent.com/u/2384153?v=4)](https://github.com/berteltorp "berteltorp (2 commits)")[![jerodev](https://avatars.githubusercontent.com/u/3493941?v=4)](https://github.com/jerodev "jerodev (1 commits)")

---

Tags

laravelwikipedia

### Embed Badge

![Health badge](/badges/casinelli-wikipedia/health.svg)

```
[![Health](https://phpackages.com/badges/casinelli-wikipedia/health.svg)](https://phpackages.com/packages/casinelli-wikipedia)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
