There is no license information available for the latest version (dev-master) of this package.

Gets Feefo reviews from their API

dev-master 2021-11-08 04:53 UTC

This package is auto-updated.

Last update: 2024-04-08 10:04:57 UTC


README

Build Status

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
}

Functions

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