Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gorse-io/php-gorse
PHP SDK for gorse recommender system
https://github.com/gorse-io/php-gorse
Last synced: about 2 months ago
JSON representation
PHP SDK for gorse recommender system
- Host: GitHub
- URL: https://github.com/gorse-io/php-gorse
- Owner: gorse-io
- License: apache-2.0
- Created: 2022-12-03T01:39:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T13:05:12.000Z (2 months ago)
- Last Synced: 2024-11-17T00:37:18.636Z (about 2 months ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 11
- Watchers: 4
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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://img.shields.io/packagist/v/gorse/php-gorse)](https://packagist.org/packages/gorse/php-gorse)
[![Packagist Downloads](https://img.shields.io/packagist/dt/gorse/php-gorse)](https://packagist.org/packages/gorse/php-gorse)## Install
Install via composer:
```bash
composer require gorse/php-gorse
```## Usage
Insert feedback and get recommendations:
```php
$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');
```