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

ActiveLibrary[API Development](/categories/api)

gorse/php-gorse
===============

PHP SDK for Gorse recommender system

v0.5.0(7mo ago)14532↓83.3%13[4 PRs](https://github.com/gorse-io/php-gorse/pulls)Apache 2PHPCI passing

Since Dec 18Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/gorse-io/php-gorse)[ Packagist](https://packagist.org/packages/gorse/php-gorse)[ RSS](/packages/gorse-php-gorse/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

php-gorse
=========

[](#php-gorse)

PHP SDK for Gorse recommender system.

[![CI](https://github.com/gorse-io/php-gorse/actions/workflows/ci.yml/badge.svg)](https://github.com/gorse-io/php-gorse/actions/workflows/ci.yml)[![Packagist Version](https://camo.githubusercontent.com/b1edd8abbf11de9e487644a51a8e97172803e229c127a2fb669fcefa4c06329b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676f7273652f7068702d676f727365)](https://packagist.org/packages/gorse/php-gorse)[![Packagist Downloads](https://camo.githubusercontent.com/85454a73d47056d0df930ddb54a34f9df9883232fc9d09bd9c007fc347bc27d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676f7273652f7068702d676f727365)](https://packagist.org/packages/gorse/php-gorse)

Install
-------

[](#install)

Install via composer:

```
composer require gorse/php-gorse
```

Usage
-----

[](#usage)

Create a Gorse client:

```
$client = new Gorse("http://127.0.0.1:8088/", "api_key");
```

Insert users:

```
$user = new User("100", ["gender" => "M", "age" => "25"], "my_comment");
$rowsAffected = $client->insertUser($user);
```

Insert items:

```
$item = new Item(
    "2000",
    true,
    ["embedding" => [0.1, 0.2, 0.3]],
    ["Comedy", "Animation"],
    "2022-11-20T13:55:27Z",
    "Minions (2015)"
);
$rowsAffected = $client->insertItem($item);
```

Insert feedback:

```
$feedback = [
    new Feedback("read", "100", "2000", 1.0, "2022-11-20T13:55:27Z"),
    new Feedback("read", "100", "2001", 1.0, "2022-11-20T13:55:27Z"),
];
$rowsAffected = $client->insertFeedback($feedback);
```

Get recommendations:

```
$items = $client->getRecommend('100', 10);
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance74

Regular maintenance activity

Popularity25

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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 ~1075 days

Total

2

Last Release

217d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9030120?v=4)[zhenghaoz](/maintainers/zhenghaoz)[@zhenghaoz](https://github.com/zhenghaoz)

---

Top Contributors

[![zhenghaoz](https://avatars.githubusercontent.com/u/9030120?v=4)](https://github.com/zhenghaoz "zhenghaoz (12 commits)")[![Plong-Wasin](https://avatars.githubusercontent.com/u/72617740?v=4)](https://github.com/Plong-Wasin "Plong-Wasin (1 commits)")[![Xoshbin](https://avatars.githubusercontent.com/u/1606070?v=4)](https://github.com/Xoshbin "Xoshbin (1 commits)")[![zhangzhenghao](https://avatars.githubusercontent.com/u/33406104?v=4)](https://github.com/zhangzhenghao "zhangzhenghao (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M984](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

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

PHPackages © 2026

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