weblabnl / tpwratings
API client library to display ThePerfectWedding Ratings
Installs: 4 865
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.2.0
This package is not auto-updated.
Last update: 2024-12-29 09:39:49 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.