2017 © Pedro Peláez
 

symfony-bundle recommender-ir-bundle

A simple wrapper for recommender.ir.

image

shaygan/recommender-ir-bundle

A simple wrapper for recommender.ir.

  • Monday, July 18, 2016
  • by imangh
  • Repository
  • 1 Watchers
  • 2 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 17 % Grown

The README.md

ShayganRecommenderIrBundle

A symfony2 wrapper bundle for Recommender.ir., (*1)

Install

Via Composer, (*2)

``` bash $ composer require shaygan/recommender-ir-bundle @dev, (*3)


Edit your app/AppKernel.php to register the bundle in the registerBundles() method as above: ```php class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... // register the bundle here new \Shaygan\RecommenderIrBundle\ShayganRecommenderIrBundle() ); } }

Configure the bundle

This bundle was designed to just work out of the box., (*4)

# app/config/config.yml

shaygan_recommender:
    base_uri: http://example.com
    #user_agent: shaygan-recommender-ir (https://github.com/shaygan/recommenderir) 
    #connect_timeout: 30
    #timeout: 30

Usage

Wherever you have access to the service container :, (*5)

container->get('shaygan.recommender');

    // test the API by calling getMe method
    $user = $api->getMe();

?>

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

18/07 2016

dev-master

9999999-dev http://i-gh.ir

A simple wrapper for recommender.ir.

  Sources   Download

MIT

The Requires

 

php symfony2 recommender recommender.ir