CodagPredictionIOBundle
This bundle provides an PredictionIO integration for your Symfony2 Project., (*1)
, (*2)
PredictionIO Methods Supported, (*3)
This Bundle is just a wrapper for the PredictionIO-PHP-SDK and will support all methods provided in the SDK., (*4)
Installation
- Add CodagPredictionIOBundle to your composer.json
- Enable the bundle
- Configure the bundle
Step 1: Add CodagAlchemyApiBundle to your composer.json
{
"require": {
"codag/predictionio-bundle": "dev-master"
}
}
Update your project dependencies:, (*5)
php composer.phar update codag/predictionio-bundle
Step 2: Enable the bundle
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Codag\PredictionIOBundle\CodagPredictionIOBundle(),
);
}
Yml configuration:, (*6)
# app/config/config.yml
codag_prediction_io:
app_key: Your App Key
api_url: Your Api Url # Optional
Usage
This bundle provides the service codag.predictionio
, (*7)
<?php
$client = $this->get('codag.predictionio')->getClient();
For further implementation examples please see also our Sandbox., (*8)
Contribute
If the bundle doesn't allow you to customize an option, I invite you to fork the project, create a feature branch, and send a pull request., (*9)
To ensure a consistent code base, you should make sure the code follows
the Coding Standards., (*10)
License
This bundle is under the MIT license. See the complete license here., (*11)