lukerodham/trustpilot-api

此包已被废弃,不再维护。作者建议使用lukerodham/trustpilot-api包。
关于此包最新版本(dev-master)没有可用的许可信息。

TrustPilot API 客户端

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

This package is not auto-updated.

Last update: 2022-02-01 12:55:43 UTC


README

对trustpilot api的简单封装。

目前仅支持获取公司评论的api。

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