Skip to content

JKetelaar/PHP-Kiyoh-API

Repository files navigation

A PHP Kiyoh API

All Contributors

Build Status

How to install?

Install this project using composer: composer require jketelaar/php-kiyoh-api.

Then start using the API using something like:

<?php
/**
 * @author JKetelaar
 */
require_once('vendor/autoload.php');

$connector = 'xxxxxxxx'; // Change 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());

Example outputs

Company output

var_dump($kiyoh->getCompany());

KiyOh Company PHP Dump

Review output

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

KiyOh Company PHP Dump

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Jeroen Ketelaar
Jeroen Ketelaar

🚧 👀 💻 🚇 🤔
Menno van den Ende
Menno van den Ende

💻 🤔
Mike van Diepen
Mike van Diepen

💻 ⚠️
joldnl
joldnl

💻
Robin Speekenbrink
Robin Speekenbrink

💻
Thomas Dik
Thomas Dik

💻

This project follows the all-contributors specification. Contributions of any kind welcome!