omnireview / tripadvisor
Omnireview Tripadvisor: a location's rating, bubbles and up to five reviews through Tripadvisor's Content API, the link to write one; its display requirements declared - logo, bubbles from Tripadvisor's addresses, pages kept out of search engines.
Package info
github.com/glitchr-omnisense/omnireview-tripadvisor
pkg:composer/omnireview/tripadvisor
Requires
- php: >=8.2
- omnisense/omnireview: ^1.0@dev
- symfony/http-client: ^6.4|^7.0|^8.0
Requires (Dev)
- phpunit/phpunit: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-26 10:05:41 UTC
README
Tripadvisor for omnisense/omnireview: a location's rating, its bubbles, its number of reviews, up to five reviews and the link to write one, through the Tripadvisor Content API.
use Omnireview\Model\Place; use Omnireview\Tripadvisor\TripadvisorGatewayFactory; $gateway = (new TripadvisorGatewayFactory($httpClient))->create(['api_key' => getenv('TRIPADVISOR_KEY'), 'language' => 'fr']); $location = new Place('1234567'); // the location ID: it may be kept $gateway->rating($location); // 4.5 from 312, the bubbles' image, the location's page $gateway->reviews($location); // up to five $gateway->writeUrl($location);
Written from the Content API's reference and display requirements, read on 2026-10-08. Not verified in real: no key.
Documentation: the options, the calls, Tripadvisor's display rules, what was verified.
Responsibility
This package is an independent, unofficial client: it is not affiliated with, endorsed by or sponsored by Tripadvisor LLC. It reaches their service on behalf of whoever runs it, and it does not redistribute their data beyond the short excerpts recorded as test fixtures. Its MIT licence covers this package's code only and grants no right to the service or to its data.
Whoever installs and runs this package is responsible for complying with the Tripadvisor Content API's terms (Content API terms of use), for obtaining whatever they require (an account, a key, a licence or subscription, an attribution or a citation, a rate limit to respect), and for any use made of what it returns. The authors publish it free of charge, make no commercial use of it, and accept no liability for how it is used (see LICENSE).
License: MIT since 2026-10-09; earlier versions remain published under LGPL-3.0-or-later.