PHP code example of kingscode / php-klanten-vertellen-api

1. Go to this page and download the library: Download kingscode/php-klanten-vertellen-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kingscode / php-klanten-vertellen-api example snippets


$repository = new Repository('YOUR-TOKEN-HERE', 1234, 'nl');
$wrapper = new KlantenVertellenWrapper(new GetReviews($repository), new ReviewInvite($repository));

//This will return 50 latest reviews that got posted on your page
$reviews = $wrapper->reviews()->getReviews(50);
   
//This will return the 25 worst reviews that got posted on your page
$worstReviews = $wrapper->reviews()->getWorstReviews();

//You can only send an invite to the same address every 30 days
$wrapper->inviter()->sendInvite('[email protected]', 'First name', 'Last name');
text
composer