Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

cubixle/trustpilot-api-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple wrapper for the trustpilot api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages