evandhq/php-recommenderir

Recommender.ir API PHP client

dev-master 2017-05-09 07:26 UTC

This package is not auto-updated.

Last update: 2024-11-09 19:56:21 UTC


README

A simple Object Oriented wrapper for Recommender.ir API, written with PHP5.

Installation

composer require evandhq/php-recommenderir

or add this line to your composer.json file

"evandhq/php-recommenderir" : "dev-master"

Basic usage

require_once 'vendor/autoload.php';

$client = new Evand\Recommenderir\Client(['base_uri' => 'http://example.com']);
$client->ingest(12345, 'product1', 200);

Available methods

  • ingest
  • forgetItems
  • forgetItemsList
  • rememberItems
  • addTerms
  • removeTerms
  • termsList
  • itemLocationAdd
  • itemLocationList
  • recommend
  • termRecommend
  • spectrometer
  • spotlight
  • recommendToGroup
  • similarity
  • similarityToItem
  • because
  • mostPopularItems
  • termMostPopularItems
  • termSimilarity
  • termBasedRecommend
  • termBasedRecommendInclusive
  • termBasedMostPopularItems
  • termBasedSimilarity
  • termBasedSimilarityInclusive
  • termNeighborhood
  • latestTouchedItems
  • latestTouchedTerms
  • userFrequentlyTouchedItems
  • itemFrequentlyVisitors
  • currentMood
  • setUserProfile
  • getUserProfile
  • guessUserProfile
  • luckyUser
  • getTrends

Feel free to open an issue and send a pull request.