gorse/php-gorse

PHP SDK for Gorse recommender system

v0.4.0 2022-12-18 03:37 UTC

This package is auto-updated.

Last update: 2024-03-30 00:38:21 UTC


README

PHP SDK for Gorse recommender system.

CI Packagist Version Packagist Downloads

Install

Install via composer:

composer require gorse/php-gorse

Usage

Insert feedback and get recommendations:

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

$rowsAffected = $client->insertFeedback([
    new Feedback("read", "10", "3", "2022-11-20T13:55:27Z"),
    new Feedback("read", "10", "4", "2022-11-20T13:55:27Z"),
]);

$client->getRecommend('10');