PHPackages                             wigeeky/laravel-wikidata - 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. wigeeky/laravel-wikidata

ActiveLibrary[API Development](/categories/api)

wigeeky/laravel-wikidata
========================

Laravel integration with Wikidata Sparql API

22PHP

Since Sep 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/WiGeeky/laravel-wikidata)[ Packagist](https://packagist.org/packages/wigeeky/laravel-wikidata)[ RSS](/packages/wigeeky-laravel-wikidata/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel integration with Wikidata Sparql API
============================================

[](#laravel-integration-with-wikidata-sparql-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e1ca4b3de44aac042593d151d9408f51ebf2c7de81d05a7543debbbc4e579f6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77696765656b792f6c61726176656c2d77696b69646174612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wigeeky/laravel-wikidata)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ac59999986aed39e0bafd78971bfc8f51519f7667144f14435367904e1caf965/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f77696765656b792f6c61726176656c2d77696b69646174612f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/wigeeky/laravel-wikidata/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/20da35a637ffb59b0cbf765df17d14f2e8388b019174f26bbccea8815987c058/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f77696765656b792f6c61726176656c2d77696b69646174612f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/wigeeky/laravel-wikidata/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/55ba7d4165635d467e8e2c2062369044b50978445f48d11cb87d5bd0986ef9c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77696765656b792f6c61726176656c2d77696b69646174612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wigeeky/laravel-wikidata)

This Laravel package assists with getting data from Wikidata's SPARQL APIs.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require wigeeky/laravel-wikidata
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-wikidata-config"
```

This is the contents of the published config file:

```
return [
    'base_url' => 'https://query.wikidata.org/sparql?query=',
];
```

Usage
-----

[](#usage)

```
use WiGeeky\Wikidata\Facades\Wikidata;
$query = "SELECT ?country ?code ?flag WHERE {?item wdt:P31 wd:Q3624078 . ?item wdt:P474 ?code . ?item wdt:P297 ?country .  ?item wdt:P41 ?flag}";

$collection = Wikidata::get($query);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Mohammad H. Maazallahi](https://github.com/WiGeeky)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/20ed2d9baa7dd5100fa6a2f824706ecc0e6a5f916ba0d36a33ae75c8245aca61?d=identicon)[WiGeeky](/maintainers/WiGeeky)

---

Top Contributors

[![MikeMazalahi](https://avatars.githubusercontent.com/u/21097871?v=4)](https://github.com/MikeMazalahi "MikeMazalahi (7 commits)")

### Embed Badge

![Health badge](/badges/wigeeky-laravel-wikidata/health.svg)

```
[![Health](https://phpackages.com/badges/wigeeky-laravel-wikidata/health.svg)](https://phpackages.com/packages/wigeeky-laravel-wikidata)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k16](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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