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.5k1MITPHPCI failing

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 2w 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

37

—

LowBetter than 81% of packages

Maintenance31

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

713d 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

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)[emartech/emarsys-magento2-extension

Magento2 integration for the Emarsys Marketing Platform

14273.9k](/packages/emartech-emarsys-magento2-extension)

PHPackages © 2026

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