2017 © Pedro Peláez
 

library trustpilot-api

A TrustPilot API client

image

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

The README.md

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

The Versions

25/02 2016

dev-master

9999999-dev

A TrustPilot API client

  Sources   Download

The Requires

 

trustpilot trust pilot