omnireview / google
Omnireview Google: an establishment's Google rating and reviews through the Places API (New) - up to five, with their authors' attribution - and, for its owner, every review and replying through the Business Profile API; the link to leave a review; Google's display and caching rules declared.
Requires
- php: >=8.2
- glitchr/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-15 13:23:19 UTC
README
Google reviews for glitchr/omnireview: any place's rating, number of ratings and up to five reviews through the Places API (New); for the place's owner, every review and replying through the Business Profile API.
use Omnireview\Google\GoogleGatewayFactory; use Omnireview\Model\Place; $gateway = (new GoogleGatewayFactory($httpClient))->create(['api_key' => getenv('GOOGLE_PLACES_KEY'), 'language' => 'fr']); $place = new Place('ChIJLU7jZClu5kcR4PcOOO6p3I0'); // the place ID: the one thing Google lets you keep $gateway->rating($place); // 4.6 from 128, with its Google Maps link $gateway->reviews($place); // up to five, with their authors $gateway->writeUrl($place); // search.google.com/local/writereview?placeid=...
Written from Google's documentation of the Places API (New) and the Business Profile API, read on 2026-10-08. Not verified in real: no key - but for the link to write a review, which answered.
Documentation: the options, the calls, Google's terms, what was verified.
Responsibility
This package is an independent, unofficial client: it is not affiliated with, endorsed by or sponsored by Google LLC. It reaches their services 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 Google's terms (Google Maps Platform Terms of Service, Business Profile APIs terms), 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.