jketelaar/php-kiyoh-api

Allows you to interact with KiyOh using PHP

2.1.0 2023-09-12 07:50 UTC

README

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):

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