PHPackages                             wes-php-client/wes-php-client - 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. wes-php-client/wes-php-client

ActiveLibrary[API Development](/categories/api)

wes-php-client/wes-php-client
=============================

PHP Client for Wikidata Entity Suggester

06PHP

Since May 21Pushed 13y ago1 watchersCompare

[ Source](https://github.com/nilesh-c/wes-php-client)[ Packagist](https://packagist.org/packages/wes-php-client/wes-php-client)[ RSS](/packages/wes-php-client-wes-php-client/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Wikidata Entity Suggester PHP Client
====================================

[](#wikidata-entity-suggester-php-client)

This is the PHP client for the [Wikidata Entity Suggester](https://github.com/nilesh-c/wikidata-entity-suggester). It uses the Entity Suggester's REST API to push data and get suggestions.

Installation via Composer
-------------------------

[](#installation-via-composer)

The best way to use the library is via [Composer](http://getcomposer.org/).

After you install composer, run in console:

```
cd your/working/directory
composer require guzzle/guzzle
composer require wes-php-client/wes-php-client

```

Type 'dev-master' for both, when prompted for the version.

OR

You can manually add the library to your dependencies in the composer.json file:

```
{
    "require": {
        "wes-php-client/wes-php-client": "dev-master"
    }
}

```

and install your dependencies:

```
composer install

```

Usage
-----

[](#usage)

```
// Always include this file to use the client
require_once("vendor/autoload.php");

// Instanciate the Myrrix/Entity Suggester service
$wes = new EntitySuggesterService('localhost', 8080);

// Push the data in the file /path/data.csv into the Entity Suggester.
// Please check [this page](https://github.com/nilesh-c/wikidata-entity-suggester/wiki/CSV-file-explanation) for info on how the data should be structured in the CSV file.
$wes->ingestFile("/path/data.csv");

// Refresh the index (add newly added data into the model)
$wes->refresh();

// Get value recommendations for a new item
$recommendation = $myrrix->getRecommendation(array(
                                                    "107----4167410",
                                                    "106",
                                                    "107----215627",
                                                    "156"
                                                ), "value"); // returns an array of property-value pairs and strengths (example: [["107----4167410",0.53],["373----Huntsville  Alabama",0.499]])

// Get property recommendations for a new item
$recommendation = $myrrix->getRecommendation(array(
                                                    "107----4167410",
                                                    "106",
                                                    "107----215627",
                                                    "156"
                                                ), "property"); // returns an array of properties and strengths (example: [["25",0.53],["156",0.499]])

// Specify the number of recommendations (optional)
$recommendation = $myrrix->getRecommendation(array(
                                                    "107----4167410",
                                                    "106",
                                                    "107----215627",
                                                    "156"
                                                ), "property", 20); // returns an array of 20 properties with strengths (example: [["25",0.53],["156",0.499]])
```

See [wesTest.php](wesTest.php) for a crude example/demo. It is temporarily deployed [here](http://173.0.50.123/wesTest.php).

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4850?v=4)[Nilesh Chaudhari](/maintainers/nilesh)[@nilesh](https://github.com/nilesh)

---

Top Contributors

[![nilesh-c](https://avatars.githubusercontent.com/u/1786561?v=4)](https://github.com/nilesh-c "nilesh-c (16 commits)")

### Embed Badge

![Health badge](/badges/wes-php-client-wes-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/wes-php-client-wes-php-client/health.svg)](https://phpackages.com/packages/wes-php-client-wes-php-client)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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