Skip to content

This class can help you get the ratings and reviews of a TrustPilot page

Notifications You must be signed in to change notification settings

madsobel/trustpilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

#TrustPilot Ratings and Reviews This class can help you get the ratings and reviews of a TrustPilot page. This class does not use the API made by TrustPilot, it... it.. screen scrapes (sigh).. the results.

However it serves the purpose of getting some quick reviews and ratings data. Use it at your own "risk".

Example

<?php
	require "class.trustpilot.php";

	$tp = new Trustpilot("https://www.trustpilot.com/review/www.trustpilot.com");

	// Average rating
	print_r($tp->getRating());

	// Star Count
	print_r($tp->getStars());

	// Last 20 reviews
	print_r($tp->getReviews());

Author

Mads Obel - Web - Twitter

About

This class can help you get the ratings and reviews of a TrustPilot page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages