thewulf7/tripadvisor

There is no license information available for the latest version (1.0.4) of this package.

Yii component to parse data from tripadvisor

1.0.4 2016-04-06 09:15 UTC

This package is not auto-updated.

Last update: 2024-11-09 20:01:42 UTC


README

Codeship Status for thewulf7/yii-tripadvisor

Installation

Begin by installing this package through Composer.

{
    "require": {
        "thewulf7/tripadvisor": "dev-master"
    }
}
    'components' => [
        ...
        'tripadvisor' => [
            'class' => 'thewulf7\tripadvisor\Connection'
        ]
        ...
    ]

Usage

Retrieve data

$trip = \Yii::$app->get('tripadvisor');
    
return $trip->createCommand()->search('Moscow');

Same with QueryBuilder

$query = new \thewulf7\tripadvisor\Query();

$query
    ->setAction()
    ->addType('geo')
    ->setQuery('Moscow')
    ->setDetails(false);

return $query
    ->createCommand()
    ->search();

More examples in tests forlder

Issues with existing library