2017 © Pedro Peláez
 

library feefo

A generic Feefo PHP SDK package.

image

evoluted/feefo

A generic Feefo PHP SDK package.

  • Monday, December 5, 2016
  • by evoluted
  • Repository
  • 6 Watchers
  • 3 Stars
  • 3,726 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 11 % Grown

The README.md

Feefo API PHP SDK

A framework agnostic library for working with the Feefo API for E-commerce sales reviews., (*1)


Installation

This project can be installed via Composer:, (*2)

$ composer require evoluted/feefo

Usage

Using the Feefo api package is fairly easy. Once you've loaded the library via Composer, you can initialise it as follows, remembering to add your Feefo credentials:, (*3)

$feefo = new Evoluted\Feefo\Feefo(
    '', // Merchant identifier
    '' // API Key
);

Once initialised you are able to retrieve the latest reviews with:, (*4)

$feefo->reviews();

You can optionally increase or decrease the number of results from the default of 5 like so:, (*5)

$feefo->reviews(10);

Custom Calls

You can make custom calls for additional information using the generic get or post request handlers., (*6)

Retrieving product ratings

$feefo->get('10/products/ratings', [
    'merchant_identifier' => $feefo->merchantIdentifier,
    'review_count' => '10',
    'since' => 'year',
]);

Adding Sales

$sale = $feefo->post('entersaleremotely', [
    'apikey' => $feefo->apiKey,
    'merchantidentifier' => $feefo->merchantIdentifier,
    'email' => 'customer@example.com',
    'name' => 'John Smith',
    'date' => '2016-11-25',
    'description' => 'Our Product',
    'productsearchcode' => '123456',
    'orderref' => 'ORDER123456',
    'amount' => '123.45',
    'productlink' => 'http://www.example.com/product/123456',
    'customerref' => '987654',
]);

For an example of the above implementation, see the included example file., (*7)

Resources

The Versions

05/12 2016

dev-master

9999999-dev https://github.com/EvolutedNewMedia/feefo

A generic Feefo PHP SDK package.

  Sources   Download

MIT

The Requires

 

by Rick Mills
by Evoluted New Media

05/12 2016

1.0.1

1.0.1.0 https://github.com/EvolutedNewMedia/feefo

A generic Feefo PHP SDK package.

  Sources   Download

MIT

The Requires

 

by Rick Mills
by Evoluted New Media

25/11 2016

1.0.0

1.0.0.0 https://github.com/EvolutedNewMedia/feefo

A generic Feefo PHP SDK package.

  Sources   Download

MIT

The Requires

 

by Rick Mills
by Evoluted New Media