PHP code example of jketelaar / php-kiyoh-api

1. Go to this page and download the library: Download jketelaar/php-kiyoh-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/ */

    

jketelaar / php-kiyoh-api example snippets



/**
 * @author JKetelaar
 */
e with your hash
$count = 50; // Amount of reviews you want to get

$kiyoh = new \JKetelaar\Kiyoh\Kiyoh($connector, $count);

$company = $kiyoh->getCompany();

var_dump($company->getReviews()[0]->getId());

var_dump($company->getLocationName());
var_dump($company->getAverageRating());
var_dump($company->getNumberReviews());

var_dump($kiyoh->getCompany());

var_dump($kiyoh->getCompany()->getReviews()[0]);