PHPackages                             denason/wikimind - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. denason/wikimind

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

denason/wikimind
================

A powerful Laravel package for accessing structured knowledge from Wikidata. WikiMind helps you extract entities, properties, relationships, and metadata with intelligent query support. Ideal for building smart apps, auto-blogging systems, and AI-powered knowledge tools.

v1.0.1(1y ago)34MITPHPPHP &gt;=8.0

Since May 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/DenaSon/wikiMind)[ Packagist](https://packagist.org/packages/denason/wikimind)[ RSS](/packages/denason-wikimind/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

WikiData API (wikiMind) Laravel Package
=======================================

[](#wikidata-api-wikimind-laravel-package)

🧠 A robust and developer-friendly Laravel package for querying **Wikidata** using **SPARQL**. With this package, you can seamlessly connect your Laravel application to Wikidata's vast and structured knowledge base, enabling access to entities, properties, and their relations in a programmatic and efficient manner.

Whether you're building educational tools, conducting data analysis, or enriching content with real-time knowledge, this package provides a fluent interface to fetch structured data directly from Wikidata.

Perfect for applications needing semantic data, linked entities, and flexible filters — with full Laravel

Say goodbye to raw API calls! With this package, you get full **Laravel Facade** support, **smart query enhancements**, and a streamlined interface for precise data retrieval.

Features
--------

[](#features)

- Retrieve **entity data** (labels, descriptions, properties, etc.) from Wikidata.
- Fluent interface for constructing and executing **SPARQL queries**.
- **Multi-language support** (English, Persian, French, etc.).
- Efficient data filtering and advanced querying (supports **DISTINCT** queries).
- Retrieve related **entity labels** and **descriptions**.
- Easily integrate into your **Laravel** applications with **Facade** and **Dependency Injection**.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0
- Laravel &gt;= 9.x

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

[](#installation)

```
composer require denason/wikimind
```

Usage Examples
--------------

[](#usage-examples)

You can use the global `wikiMindQuery()` helper or dependency injection with the interface to access all features.

### Using Helper :

[](#using-helper-)

```
$streetEntity = \Denason\Wikimind\Facades\Wikimind::getEntityId('street'); // Q79007

return wikiMindQuery()
    ->lang('fa')
    ->where('street', 'P31', $streetEntity)
    ->where('street', 'P17', 'Q794') // ایران
    ->select(['street', 'streetLabel'])
    ->filter('!BOUND(?place)')
    ->limit(50)
    ->get('collection');
```

Available Methods
-----------------

[](#available-methods)

All methods are accessible via the `wikiMindQuery()` helper or through dependency injection using the `WikimindInterface`.

MethodDescription`select()`Specifies the variables to select in the query.`where()`Adds conditions to the query (subject, predicate, object).`optional()`Adds optional parts to the query.`filter()`Adds a filter condition.`lang()`Sets the language for the query (e.g., 'fa', 'en').`limit()`Sets the number of results to return.`distinct()`Ensures the results are distinct (removes duplicates).`orderBy()`Specifies the variable and direction for ordering results.`get()`Executes the query and returns the results in the specified format (e.g., 'array', 'collection').### Dependency Injection Example

[](#dependency-injection-example)

Instead of using the global `wikiMindQuery()` helper, you can inject the `WikimindInterface` directly into your controller, service, or job.

This approach takes advantage of Laravel's service container to resolve the interface to its concrete implementation automatically.

- **Full support for Facades**: You can use `WikimindFacade` for quick access to methods.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance50

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

368d ago

### Community

Maintainers

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

---

Top Contributors

[![DenaSon](https://avatars.githubusercontent.com/u/34172621?v=4)](https://github.com/DenaSon "DenaSon (8 commits)")

### Embed Badge

![Health badge](/badges/denason-wikimind/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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