Updated the review transformer to collect the author and removed setters as they are pointless here. Added new methods to the reviews controller and some sensible logic, so the API is not hit more than it needs to be.
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']);