PHPackages                             rustem-kaimolla/recommender-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rustem-kaimolla/recommender-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rustem-kaimolla/recommender-php
===============================

A lightweight library for building recommender systems in PHP

v1.0.0(1y ago)200MITPHPPHP &gt;=8.0CI passing

Since Apr 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rustem-kaimolla/recommender-php)[ Packagist](https://packagist.org/packages/rustem-kaimolla/recommender-php)[ RSS](/packages/rustem-kaimolla-recommender-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Recommender-PHP
===============

[](#recommender-php)

🚀 A lightweight library for building recommender systems in PHP.

[![Tests](https://github.com/rustem-kaimolla/recommender-php/actions/workflows/ci.yml/badge.svg)](https://github.com/rustem-kaimolla/recommender-php/actions)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/dae50c25751e4d6f6115ba63c94506da61381cf55675f1d23f7c463c9537d419/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e302d3838393242462e737667)](https://www.php.net/)[![Coverage](https://camo.githubusercontent.com/b3545ae1bcdb4ea486f71f87b43001e82dd21933bc8035d44601706c851265da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e2e737667)](https://github.com/rustem-kaimolla/recommender-php)

> Supports Item-Item Collaborative Filtering via Jaccard Similarity and an extensible architecture to work with different types of storage.

---

📦 Installation
--------------

[](#-installation)

```
composer require rustem-kaimolla/recommender-php
```

*(for local development)*

```
git clone https://github.com/rustem-kaimolla/recommender-php.git
cd recommender-php
composer install
```

---

✨ Основные возможности
----------------------

[](#-основные-возможности)

- **Item-Item Collaborative Filtering**
- **Jaccard Similarity** (similarity metric)
- **InMemory storage** for fast tests (extensible for Redis, PostgreSQL and others)
- **Clean architecture with interfaces** (PSR-4)
- **Test coverage (PHPUnit)**
- **License MIT**

---

⚡ Quick start
-------------

[](#-quick-start)

```
