PHPackages                             addwiki/wikibase-query - 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. addwiki/wikibase-query

ActiveLibrary[API Development](/categories/api)

addwiki/wikibase-query
======================

Wikibase Query library

3.1.0(1y ago)0403GPL-2.0-or-laterPHP &gt;=8.1

Since Jul 12Compare

[ Source](https://github.com/addwiki/wikibase-query)[ Packagist](https://packagist.org/packages/addwiki/wikibase-query)[ RSS](/packages/addwiki-wikibase-query/feed)WikiDiscussions Synced today

READMEChangelogDependencies (5)Versions (2)Used By (0)

wikibase-query
==============

[](#wikibase-query)

[![GitHub issue custom search in repo](https://camo.githubusercontent.com/196bcda686812290f3dc1b18cda97847dfad51bd5e2cd5380e01a7482983bd17/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d7365617263682f61646477696b692f61646477696b693f6c6162656c3d6973737565732671756572793d6973253341697373756525323069732533416f70656e25323025354277696b69626173652d7175657279253544)](https://github.com/addwiki/addwiki/issues?q=is%3Aissue+is%3Aopen+%5Bwikibase-query%5D+)[![Latest Stable Version](https://camo.githubusercontent.com/1a9fb07888c3be40721d9e39b755b962c59fc1c7f55bf9309ab597407daeb44e/68747470733a2f2f706f7365722e707567782e6f72672f61646477696b692f77696b69626173652d71756572792f76657273696f6e2e706e67)](https://packagist.org/packages/addwiki/wikibase-query)[![Download count](https://camo.githubusercontent.com/9da30854dfc9bd8a6bfa23aa5e33710d1792cc6a82328dd13dea08370008c2fd/68747470733a2f2f706f7365722e707567782e6f72672f61646477696b692f77696b69626173652d71756572792f642f746f74616c2e706e67)](https://packagist.org/packages/addwiki/wikibase-query)

Issue tracker:

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

[](#installation)

Use composer to install the library and all its dependencies:

```
composer require "addwiki/wikibase-query:~3.0"

```

Examples
--------

[](#examples)

Use the `SimpleQueryService` with wikidata.

```
use Addwiki\Wikibase\Query\WikibaseQueryFactory;
use Addwiki\Wikibase\Query\PrefixSets;

$factory = new WikibaseQueryFactory(
    "https://query.wikidata.org/sparql",
    PrefixSets::WIKIDATA
);

$r = $factory->newSimpleQueryService()->query(["P31:Q1"]);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

721d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccc2c40c150701b6b72f598f342b6a7aa57d7ab06a08c5f085f6add75094b82b?d=identicon)[addshore](/maintainers/addshore)

---

Tags

apimediawikiquerysparqlwikidatawikibase

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/addwiki-wikibase-query/health.svg)

```
[![Health](https://phpackages.com/badges/addwiki-wikibase-query/health.svg)](https://phpackages.com/packages/addwiki-wikibase-query)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[addwiki/wikibase-api

Wikibase API library

254.7k3](/packages/addwiki-wikibase-api)

PHPackages © 2026

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