weblabnl/tpwratings

API client library to display ThePerfectWedding Ratings

2.1.0 2017-06-09 09:45 UTC

This package is not auto-updated.

Last update: 2024-04-21 06:24:41 UTC


README

With this library you’re able to share the reviews you gathered at http://www.theperfectwedding.nl for your company on your own website - The widget contains the right mark-up to display “review stars” in the Google search result.

To be able to display the widget on your website, you need an access key. The unique access key can be found in the company profile settings on ThePerfectWedding.nl under "reviews" -> "widget". This unique key is only shared with a company profile owner on ThePerfectWedding.nl.

Installation

Install using composer:

composer require weblabnl/tpwratings

Install manually:

Download the latest release from: https://github.com/Weblab-nl/tpwratings/archive/master.zip and unzip the library into your project.

Using the Library

<?php
require_once 'tpwratings/src/TPWRatings.php'; //Not required with Composer
echo new TPWRatings('WIDGET_KEY', 'light');
?>

There is a 'dark' and 'light' version available of the widget.