This package is designed to be an easy way to query the Feefo reviews API in php.
It can be installed using composer by running the following command:
composer require sykescottages/feefo
Then simplest method of getting the reviews is as follows:
$reviews = new SykesCottages\Feefo\Reviews('merchant-identifier');
foreach ($reviews->getReviews() as $review) {
// Handle review here
}
All functions can be chained, together for example:
$reviews = new SykesCottages\Feefo\Reviews('merchant-identifier');
foreach ($reviews->sku('sku')->pageSize(50)->getReviews() as $review) {
// Handle review here
}
Function Name | Description | Default Value |
---|---|---|
url | The URL endpoint | https://api.feefo.com/api/10/reviews/product |
sincePeriod | Filter reviews to those created during the specified period | all |
fullThread | Filters subsequent exchanges between the customer and merchant | include |
pageSize | The number of reviews to return per page, max 100 | 100 |
page | The page number to return reviews for | 1 |
fields | Limit the response to include certain fields | |
sku | Filter reviews assigned to the specified product search code |