PHPackages                             bcc/myrrix-bundle - 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. [Framework](/categories/framework)
4. /
5. bcc/myrrix-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

bcc/myrrix-bundle
=================

Myrrix bundle for symfony.

668PHP

Since Dec 25Pushed 13y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Myrrix bundle
=============

[](#myrrix-bundle)

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).

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

Installation and configuration
------------------------------

[](#installation-and-configuration)

### Get the Bundle via Composer

[](#get-the-bundle-via-composer)

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

Do in the command line:

```
composer require bcc/myrrix-bundle

```

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

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

```

Then install your dependencies:

```
composer install

```

### Add the bundle to your kernel

[](#add-the-bundle-to-your-kernel)

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new BCC\MyrrixBundle\BCCMyrrixBundle(),
        // ...
    );
}
```

### Set the configuration

[](#set-the-configuration)

You will have to configure your Myrrix endpoint in your configuration:

```
# app/config/config.yml
bcc_myrrix:
    host: localhost # the myrrix host
    port: 8080      # the myrrix port
    username: test  # the myrrix username
    password: 1234  # the myrrix password

```

### Start a Myrrix server instance

[](#start-a-myrrix-server-instance)

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/).

Usage
-----

[](#usage)

You can now simply get an instance of `MyrrixService`:

```
$myrrix = $container->get('bcc_myrrix.service');

// 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]])
```

More service functions
----------------------

[](#more-service-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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

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-bundle/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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