PHPackages                             exussum12/trip-advisor - 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. [API Development](/categories/api)
4. /
5. exussum12/trip-advisor

ActiveLibrary[API Development](/categories/api)

exussum12/trip-advisor
======================

PHP implementation of review API

1.0.0(1y ago)234.5k1MITPHP

Since Nov 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/exussum12/trip-advisor)[ Packagist](https://packagist.org/packages/exussum12/trip-advisor)[ RSS](/packages/exussum12-trip-advisor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Trip Advisor Review Client
==========================

[](#trip-advisor-review-client)

[![Build Status](https://camo.githubusercontent.com/c3bdfff84c4d799afdd0cdc8f91f16d09fa4eb48a2d0b9881899d5ef8f4759f7/68747470733a2f2f7472617669732d63692e6f72672f6578757373756d31322f747269702d61647669736f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/exussum12/trip-advisor)[![Coverage Status](https://camo.githubusercontent.com/23ed6b4d3572e03341a11d87cee49fab825f9e2f28d0e0ca29490095ccfc6eba/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6578757373756d31322f747269702d61647669736f722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/exussum12/trip-advisor?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a1c09f7587df3acdf3a2aa63ac9ffe6bc85206bca30ec91e20a05e9027732247/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6578757373756d31322f747269702d61647669736f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/exussum12/trip-advisor/?branch=master)

This is designed to be an easy way in php to use the reviews API from TripAdvisor.

This can be installed using composer for example

```
composer require exussum12/trip-advisor

```

Then the most simple method of getting the reviews is as follows

```
$reviews = new exussum12\TripAdvisor\Reviews('your key', 'your secret');
foreach ($reviews->get() as $review) {
    //handle review
}
```

The API is paged at a maximum of 1000 reviews per page, This is all handled transparently and will page internally only requesting new data when it is required.

You can set the page size by doing `$reviews->limit(50);` This will request smaller chucks. If you only want a certain size of data use `$reviews->get()->getArray()` which will only send one request.

If you are trying to update existing data, use a date range, eg `$reviews->since(new DateTime('2017-01-01'))`

This will only return the newer reviews.

Options
=======

[](#options)

All options can be chained, together for example

```
$reviews->offset(100)->limit(50)->since(new DateTime('2017-01-31'));
foreach ($reviews->get() as $review) {
    //handle review
}
```

Exceptions
==========

[](#exceptions)

A few things can go wrong in this process, The exceptions are named as well as I can think of, All exceptions extend from `exussum12\TripAdvisor\Exceptions\BaseException`.

The reviews which come back are immutable, So trying to write to any review will throw an exception (ImmutableObjectException)

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 96.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~611 days

Total

5

Last Release

661d ago

Major Versions

V0.1.3 → 1.0.02024-07-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/a7759f1a7acac4ee25112e8e0ac2eb608010aba1060ba00c687d615dc7e74f19?d=identicon)[exussum](/maintainers/exussum)

---

Top Contributors

[![exussum12](https://avatars.githubusercontent.com/u/1102850?v=4)](https://github.com/exussum12 "exussum12 (29 commits)")[![Ugoku](https://avatars.githubusercontent.com/u/3470653?v=4)](https://github.com/Ugoku "Ugoku (1 commits)")

---

Tags

clientreviewtripadvisor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/exussum12-trip-advisor/health.svg)

```
[![Health](https://phpackages.com/badges/exussum12-trip-advisor/health.svg)](https://phpackages.com/packages/exussum12-trip-advisor)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
