An object-oriented PHP client for recommender.ir
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json
composer.lock

README.md

php-recommenderir

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.