PHPackages                             bcc/myrrix - 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. [API Development](/categories/api)
4. /
5. bcc/myrrix

ActiveLibrary[API Development](/categories/api)

bcc/myrrix
==========

A Myrrix php client

103465PHP

Since Apr 6Pushed 13y ago3 watchersCompare

[ Source](https://github.com/michelsalib/bcc-myrrix)[ Packagist](https://packagist.org/packages/bcc/myrrix)[ RSS](/packages/bcc-myrrix/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Myrrix php library
==================

[](#myrrix-php-library)

Myrrix is a recommendation engine built on [Apache Mahout libraries](http://mahout.apache.org/). If you don't know it already, you should have a look here [Myrrix website](http://myrrix.com).

The library helps you interface with the Rest API. It is build on top of [Guzzle](https://github.com/guzzle/guzzle).

[![Build Status](https://camo.githubusercontent.com/db81e886bec31b08d7bd16837746e67e817738d8173acfb7381eb8902e835bd5/68747470733a2f2f7472617669732d63692e6f72672f6d696368656c73616c69622f6263632d6d79727269782e706e67)](https://travis-ci.org/michelsalib/bcc-myrrix)

Installation via Composer
-------------------------

[](#installation-via-composer)

The best way to use the library is via [Composer](http://getcomposer.org/).

Do in the command line:

```
composer require bcc/myrrix

```

Or Manually add the library to your dependencies in the composer.json file:

```
{
    "require": {
        "bcc/myrrix": "*"
    }
}

```

Then installyour dependencies:

```
composer install

```

Usage
-----

[](#usage)

Before you start, don't forget to have an instance of the Myrrix server running. Simply download the [.jar excecutable](http://myrrix.com/download/) for the serving layer and run it:

```
java -jar myrrix-serving-x.y.jar --localInputDir /path/to/working/dir --port 8080

```

It will run a server on port 8080 and using the `/path/to/working/dir` directory as a backing storage. You can get more information about the server [here](http://myrrix.com/documentation-serving-layer/).

You can now access your recommendation engine in php:

```
// Instanciate the Myrrix service
$myrrix = new MyrrixService('localhost', 8080);

// Put a user/item assocation, here use #101 as an association of strength 0.5 with item #1000
$myrrix->setPreference(101, 1000, 0.5);

// Refresh the index
$myrrix->refresh();

// Get a recommendation for user #101
$recommendation = $myrrix->getRecommendation(101); // an array of itemId and strength (example: [[325,0.53],[98,0.499]])
```

Authentication
--------------

[](#authentication)

You can choose to host your Myrrix server with authentication:

```
java -jar myrrix-serving-x.y.jar --localInputDir /path/to/working/dir --port 8080 --userName test --password 1234

```

In this case, you must specify username/password this way:

```
$myrrix = new MyrrixService('localhost', 8080, 'test', '1234');
```

More functions
--------------

[](#more-functions)

More functions include:

- Recommendation to many users
- Recommendation to anonymous
- More similar items
- Batch insertion of preferences
- ...

You can get a full list of functions in the [MyrrixService.php](https://github.com/michelsalib/bcc-myrrix/blob/master/src/BCC/Myrrix/MyrrixService.php) file.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ba55d1950b66f4201ce6228c3ade4024b67b5ebe28c1385709b02c0e3ef1179?d=identicon)[michelsalib](/maintainers/michelsalib)

### Embed Badge

![Health badge](/badges/bcc-myrrix/health.svg)

```
[![Health](https://phpackages.com/badges/bcc-myrrix/health.svg)](https://phpackages.com/packages/bcc-myrrix)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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