gorse / php-gorse
PHP SDK for Gorse recommender system
v0.4.0
2022-12-18 03:37 UTC
Requires
- ext-redis: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^9.3
README
PHP SDK for Gorse recommender system.
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');