library trustpilot-api
A TrustPilot API client
lukerodham/trustpilot-api
A TrustPilot API client
- Thursday, February 25, 2016
- by lrodham
- Repository
- 1 Watchers
- 0 Stars
- 4,295 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 0 Open issues
- 1 Versions
- 15 % Grown
trustpilot-api-wrapper
Simple wrapper for the trustpilot api., (*1)
Currently only supports the api to retreive a companies reviews., (*2)
<?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();
dev-master
9999999-dev
A TrustPilot API client
Sources
Download
The Requires
trustpilot
trust
pilot