mirror of
https://github.com/cubixle/trustpilot-api-wrapper.git
synced 2026-07-23 13:06:09 +01:00
115ac0f1a599b28b90a4b3079008f0bc11d0124c
trustpilot-api-wrapper
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();
Languages
PHP
100%