PHPackages                             bratao/prediction-io - 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. bratao/prediction-io

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

bratao/prediction-io
====================

Laravel PredictionIO Client

1.0.6(11y ago)241.6k↓100%5MITPHPPHP &gt;=5.3.0

Since Oct 22Pushed 11y ago2 watchersCompare

[ Source](https://github.com/bratao/PredictionIO)[ Packagist](https://packagist.org/packages/bratao/prediction-io)[ Docs](https://github.com/bratao/PredictionIO)[ RSS](/packages/bratao-prediction-io/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (8)Used By (0)

Laravel PredictionIO
====================

[](#laravel-predictionio)

*Based on [endroid](http://endroid.nl/)*

The Laravel PredictionIO library provides a client which offers easy access to a PredictionIO recommendation engine. PredictionIO is an open source machine learning server for software developers to create predictive features, such as personalization, recommendation and content discovery.

Through a small set of simple calls, all server functionality is exposed to your application. You can add users and items, register actions between these users and items and retrieve recommendations deduced from this information by any [`PredictionIO`](http://prediction.io/) recommendation engine. Applications range from showing recommended products in a web shop to discovering relevant experts in a social collaboration network.

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

[](#installation)

- Install library and dependencies:

```
$ composer require "bratao/prediction-io:1.*@dev"
```

- Add a **provider** in `app/config/app.php`:

```
    'Bratao\PredictionIO\PredictionServiceProvider'
```

- Add an **alias** in `app/config/app.php`:

```
    'Prediction'      => 'Bratao\PredictionIO\Facade',
```

- Define your [PredictionIO API endpoint](http://docs.prediction.io/current/tutorials/quickstart-php.html#add-your-app-to-predictionio) in `app/config/services.php`:

```
	'predictionio' => array(
		'api' => 'http://localhost:8000/',
		'key' => '0250b3f85ce33284f77c77f36b41010ef2c4fc5c',
	),
```

Usage
-----

[](#usage)

```
