retrochaos / trustpilot-business-unit-api
PHP integration with the Trustpilot Business Unit API
Package info
github.com/RetroChaos/TrustpilotBusinessUnitApi
pkg:composer/retrochaos/trustpilot-business-unit-api
1.0.0
2024-02-20 11:10 UTC
Requires
- php: ^7.4 | ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- retrochaos/trustpilot-authenticator: ^1.0
This package is auto-updated.
Last update: 2026-03-18 16:11:24 UTC
README
A PHP library for accessing the Trustpilot Business Unit API.
Originally developed and open-sourced by moneymaxim.
Fully modernised to:
- Use Symfony HTTP Client
- Provide type-safe error handling
Install
Install using Composer:
composer install retrochaos/trustpilot-business-unit-api
Usage
$client = new Trustpilot\Api\BusinessUnit\Client($apiKey); // $client->find($domain): array // $client->get($businessUnitId): array // $client->getReviews($businessUnitId): array // $client->getReviews($businessUnitId, ['perPage' => 5, 'page' => 2]): array