Search by

omnipulse / trustpilot

GlitchArt

Omnipulse's Trustpilot: a business unit's TrustScore and reviews, the links to its profile and to review it, replying and inviting customers with the business user's token; Trustpilot's 24-hour refresh declared.

1.x-dev 2026-11-10 06:49 UTC

This package is auto-updated.

Last update: 2026-11-10 08:18:57 UTC


README

Formerly omnireview/trustpilot (moved on 2026-11-10, when omnireview and omnifund merged into omnipulse: Omnireview\Trustpilot\ is now Omnipulse\Trustpilot\, TrustpilotGateway is TrustpilotProvider, TrustpilotGatewayFactory is TrustpilotFactory; this package replaces the former name).

Trustpilot for omnisense/omnipulse: a business unit's TrustScore, its number of reviews, its reviews and the links to its profile and to write one; with a business user's access, replying to a review and inviting a customer to write one.

use Omnipulse\Trustpilot\TrustpilotFactory;

$provider = (new TrustpilotFactory($httpClient))->create(['api_key' => getenv('TRUSTPILOT_API_KEY')]);

$unit = $provider->find('www.maison-erable.example');  // once: keep its ID
$provider->rating($unit);                              // the TrustScore, the number of reviews, the profile
$provider->reviews($unit, 10);
$provider->writeUrl($unit);                            // the profile's evaluate link

Written from Trustpilot's developer documentation, read on 2026-10-08. Not verified in real: no key.

Documentation: the options, the calls, Trustpilot's terms, what was verified.

Usage policy

Trustpilot's usage policy is declared as data in policy.json (omnisense/contracts' schema, named in composer.json's extra.omnisense.policy), its terms read on 2026-11-10 (https://developers.trustpilot.com/rate-limiting): 833 calls per 5 minutes and 10,000 an hour (Trustpilot's recommended ceilings); what is shown kept 24 hours at most; "Trustpilot" credited on display. omnipulse's registry enforces it - a call over a limit is never made, a 429 and its Retry-After hold every next call (UsageLimitReachedException) - and a site may tighten it, never loosen it (omnisense/omnipulse's docs/policies.md).

Responsibility

This package is an independent, unofficial client: it is not affiliated with, endorsed by or sponsored by Trustpilot A/S. 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 Trustpilot's terms (Terms of Use and Sale for Businesses), 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.