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

ActiveSymfony-bundle[API Development](/categories/api)

fmm/oryx-recommend
==================

A php client for the Oryx recommendation service layer

220PHP

Since Feb 5Pushed 12y ago1 watchersCompare

[ Source](https://github.com/cesarBere/FMMOryxBundle)[ Packagist](https://packagist.org/packages/fmm/oryx-recommend)[ RSS](/packages/fmm-oryx-recommend/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Oryx Bundle
===========

[](#oryx-bundle)

The Oryx open source project provides simple, real-time large-scale machine learning / predictive analytics infrastructure. It is built on the [Apache Mahout libraries](http://mahout.apache.org/) and represents a unified continuation of the [Myrrix](http://myrrix.com) and [cloudera/ml](https://github.com/cloudera/ml) projects. You can check it out [here](https://github.com/cloudera/oryx).

This bundle helps to interface with the Oryx Collaborative filtering and Recommendation services. It is built on top of [Guzzle](https://github.com/guzzle/guzzle) and inspired by [michelsalib's](https://github.com/michelsalib) [BCCMyrrixBundle](https://github.com/michelsalib/BCCMyrrixBundle) and [bcc-myrrix](https://github.com/michelsalib/bcc-myrrix) projects.

Installation &amp; configuration
--------------------------------

[](#installation--configuration)

### Install Oryx

[](#install-oryx)

See the [Oryx doc](https://github.com/cloudera/oryx/wiki/Installation) for installation, you can get releases [here](https://github.com/cloudera/oryx/releases).

### Install the bundle

[](#install-the-bundle)

#### Get the Bundle via Composer

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

In the command line :

```
composer require fmm/oryx-recommend

```

Manually : add guzzle and fmm/oryx-recommend to your composer.json :

```
{
  "require":
  {
    "guzzle/guzzle": "dev-master",
    "fmm/oryx-recommend": "dev-master"
  }
}
```

and then install the dependencies with `composer install`.

#### Add the bundle to your kernel

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

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new FMM\OryxBundle\FMMOryxBundle(),
        // ...
    );
}
```

#### Set the configuration

[](#set-the-configuration)

You have to configure the Oryx endpoint configuration :

```
// app/config/config.yml
fmm_oryx:
    host: localhost # The Oryx host
    port: 8080      # The Oryx port
    username: test  # The Oryx username
    password: 1234  # The Oryx password
```

#### Run your Oryx server and computation instances

[](#run-your-oryx-server-and-computation-instances)

Create a file called `oryx.conf` with the following informations :

```
model=${als-model}
model.local-computation=false
model.local-data=false
model.instance-dir=/user/name/repo
model.features=25
model.lambda=0.065
serving-layer.api.port=8091
computation-layer.api.port=8092

```

And run the jars with the following lines :

```
java -Dconfig.file=oryx.conf -jar oryx-computation-x.y.z.jar
java -Dconfig.file=oryx.conf -jar oryx-serving-x.y.z.jar

```

Usage
-----

[](#usage)

Get an instance of `OryxService` :

```
// Get an instance
$oryx = $this->get('fmm_oryx.service');

// Set a user/item association between user #22, item #888 of strength 0.8
$oryx->setPreference(22, 888, 0.8);

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

// Get recommendations as csv
$csv = $oryx->getRecommendation(22); // example : 325,0.5\n98,0.44

// Parse it and get an array of strings "id,strength"
$recommendations = str_getcsv($csv, "\n");
```

DEVELOPMENT
-----------

[](#development)

### Info

[](#info)

The code was developped and tested with *Oryx 0.3.0*

### TODO

[](#todo)

#### Data format

[](#data-format)

For now, data is received only as a `csv` string, `json` should be included in Oryx' next version and support added to the bundle. Also make it so that we don't have to parse the received `csv` data.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/10d220587f7ab52b35735f0cb83827656c1eda8e36e92c0f2dfa5c57fa6b588d?d=identicon)[cesarBere](/maintainers/cesarBere)

---

Top Contributors

[![cberez](https://avatars.githubusercontent.com/u/4449609?v=4)](https://github.com/cberez "cberez (9 commits)")

### Embed Badge

![Health badge](/badges/fmm-oryx-recommend/health.svg)

```
[![Health](https://phpackages.com/badges/fmm-oryx-recommend/health.svg)](https://phpackages.com/packages/fmm-oryx-recommend)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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