lukerodham / trustpilot-api
A TrustPilot API client
Installs: 9 639
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
pkg:composer/lukerodham/trustpilot-api
Requires
- php: >=5.4
- guzzlehttp/guzzle: ^6.1
This package is not auto-updated.
Last update: 2022-02-01 12:55:43 UTC
README
Simple wrapper for the trustpilot api.
Currently only supports the api to retreive a companies reviews.
<?php $dir = dirname(__DIR__); include $dir . '/vendor/autoload.php'; $trustPilot = new \LukeRodham\TrustPilot\TrustPilot($apikey = ''); $reviews = $trustPilot->reviews()->latest(['language' => 'en']); $starRating = $trustPilot->reviews()->getStarRating(); $numberOfReviews = $trustPilot()->reviews()->getTotalNumberOfReviews(); $trustScore = $trustPilot()->reviews()->getTrustScore();