softopia/trustpilot-unofficial-api
Composer 安装命令:
composer require softopia/trustpilot-unofficial-api
包简介
Unofficial Trustpilot Api to fetch reviews and trust score.
README 文档
README
Just checekd this randomly and It still works.
Unofficial Trustpilot Api For PHP
Unofficial Trustpilot Api to fetch reviews and trust score.
Installation
You can install the package via composer:
composer require softopia/trustpilot-unofficial-api
Usage
//use namespace use Softopia\TrustApi\TrustApi; //create an instance $trust = new TrustApi('example.com'); //get average rating $trust->getRating(); //get reviews count $trust->getReviewsCount(); //get All reviews (max 600 reviews or you can say 30 pages) $trust->getAllReviews($wantJson = true); //false if you want array back
Response Format
[
{
"reviewId": "xxxxxxxxxxx",
"reviewUrl": "https://www.trustpilot.com/reviews/xxxxxxxxxxxx",
"rating": 5,
"reviewTitle": "Nice work",
"reviewBody": "Nice work!!!!",
"customer": {
"id": "xxcxcxcxc",
"name": "Nice name",
"image": "https://user-images.trustpilot.com/xxxxxxxxx/73x73.png"
}
}
]
Testing
//TODO
Credits
License
The MIT License (MIT). Please see License File for more information.
PHP Package Boilerplate
This package was generated using the PHP Package Boilerplate.
统计信息
- 总下载量: 74
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-17