PHPackages                             yuzuru-s/redis-recommend - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. yuzuru-s/redis-recommend

ActiveLibrary[Caching](/categories/caching)

yuzuru-s/redis-recommend
========================

Wrapping Redis's sorted set APIs for specializing recommending operations.

1.0.10(8y ago)392.9k6[1 issues](https://github.com/YuzuruS/redis-recommend/issues)MITPHPPHP &gt;=5.5.0

Since Aug 24Pushed 8y ago5 watchersCompare

[ Source](https://github.com/YuzuruS/redis-recommend)[ Packagist](https://packagist.org/packages/yuzuru-s/redis-recommend)[ Docs](https://github.com/YuzuruS/redis-recommend)[ RSS](/packages/yuzuru-s-redis-recommend/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (12)Used By (0)

Simple Recommendation library for Redis and PHP
===============================================

[](#simple-recommendation-library-for-redis-and-php)

[![Coverage Status](https://camo.githubusercontent.com/2ee766db34afc9aaee22568eaf83959e8309f157fb83ddb29f32cdf2297e54a6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f59757a757275532f72656469732d7265636f6d6d656e642f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/YuzuruS/redis-recommend?branch=master)[![Build Status](https://camo.githubusercontent.com/37254968ecc3e7f8b0a14bdf03f7135a02084d0e2a1853833cba8a8d3e406a8e/68747470733a2f2f7472617669732d63692e6f72672f59757a757275532f72656469732d7265636f6d6d656e642e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/YuzuruS/redis-recommend)[![Stable Version](https://camo.githubusercontent.com/39a41fbeb497c4537c717e56d313b4393f7cccaf697121f28db00d5a249635cd/68747470733a2f2f706f7365722e707567782e6f72672f79757a7572752d732f72656469732d7265636f6d6d656e642f762f737461626c65)](https://packagist.org/packages/yuzuru-s/redis-recommend)[![Download Count](https://camo.githubusercontent.com/20513569253e6a78e0ba467a5d9c10b99983f3d185be40b8552e74c7914f74e9/68747470733a2f2f706f7365722e707567782e6f72672f79757a7572752d732f72656469732d7265636f6d6d656e642f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yuzuru-s/redis-recommend)[![License](https://camo.githubusercontent.com/5dcbc1eaa7ea4bbc43c6ec9a36eaeb6e04e80d2ae993eef05503be29dd7b60d5/68747470733a2f2f706f7365722e707567782e6f72672f79757a7572752d732f72656469732d7265636f6d6d656e642f6c6963656e7365)](https://packagist.org/packages/yuzuru-s/redis-recommend)

Abstracting Redis's `Sorted Set` APIs and PHP to use as a recommending system.
This Recommendation algorithm use `Collaborative Filtering`, especially [Jaccard coefficient](https://en.wikipedia.org/wiki/Jaccard_index)

This Recommendation algorithm is used by [Amazon.com](https://www.amazon.com/)

[![Amazon](https://cloud.githubusercontent.com/assets/1485195/17956534/72ca4d3a-6ac5-11e6-985e-9074251b5f35.jpg)](https://cloud.githubusercontent.com/assets/1485195/17956534/72ca4d3a-6ac5-11e6-985e-9074251b5f35.jpg)

Please check [here](http://qiita.com/yudsuzuk/items/6de4650cb6d50236533e) for details.

Requirements
------------

[](#requirements)

- Redis
    - > =2.4
- PhpRedis extension
    -
- PHP
    - > =5.5 &gt;=5.6, &gt;=7.0, &gt;=7.1, &gt;= 7.2
- Composer

Installation
------------

[](#installation)

- Using composer

```
{
    "require": {
       "yuzuru-s/redis-recommend": "1.0.*"
    }
}

```

```
$ php composer.phar update yuzuru-s/redis-recommend --dev

```

How to use
----------

[](#how-to-use)

Please check [sample code](https://github.com/YuzuruS/redis-recommend/blob/master/sample/usecase.php)

How to run unit test
--------------------

[](#how-to-run-unit-test)

Run with default setting.

```
% vendor/bin/phpunit -c phpunit.xml.dist

```

Currently tested with PHP 7.2.0 + Redis 2.6.12.

History
-------

[](#history)

- 1.0.10
    - support php7.2
- 1.0.9
    - unsupport HHVM
- 1.0.8
    - support HHVM
- 1.0.7
    - support php7.1
- 1.0.6
    - bug fix
- 1.0.5
    - supports travis CI and passed test and display code coverage.
- 1.0.0
    - Published

License
-------

[](#license)

Copyright (c) 2017 YUZURU SUZUKI. See MIT-LICENSE for further details.

Copyright
---------

[](#copyright)

- Yuzuru Suzuki
    -

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~45 days

Recently: every ~114 days

Total

11

Last Release

3147d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73e354a09ba135db0f4849a7281fd1ae3602544202f5e589f7f3410d3a7b3664?d=identicon)[s1130125](/maintainers/s1130125)

---

Top Contributors

[![YuzuruS](https://avatars.githubusercontent.com/u/1485195?v=4)](https://github.com/YuzuruS "YuzuruS (33 commits)")

---

Tags

phprecommendation-algorithmrecommendation-engineredisredismachine learningJaccardcollaborative filteringrecommendsorted set

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/yuzuru-s-redis-recommend/health.svg)

```
[![Health](https://phpackages.com/badges/yuzuru-s-redis-recommend/health.svg)](https://phpackages.com/packages/yuzuru-s-redis-recommend)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k325.4M2.8k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k40.9M75](/packages/snc-redis-bundle)[clue/redis-protocol

A streaming Redis protocol (RESP) parser and serializer written in pure PHP.

5216.6M14](/packages/clue-redis-protocol)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

584.1M26](/packages/cache-redis-adapter)[enqueue/redis

Message Queue Redis Transport

445.7M32](/packages/enqueue-redis)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23617.1k1](/packages/rtcamp-nginx-helper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
