PHP SDK for Gorse recommender system.
Install via composer:
composer require gorse/php-gorse
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');