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

Installs: 73

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/thewulf7/tripadvisor

1.0.4 2016-04-06 09:15 UTC

This package is not auto-updated.

Last update: 2025-09-28 00:34:46 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