lukerodham/trustpilot-api

This package is abandoned and no longer maintained. The author suggests using the lukerodham/trustpilot-api package instead.
There is no license information available for the latest version (dev-master) of this package.

A TrustPilot API client

dev-master 2016-02-25 08:54 UTC

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();