Skip to content

skrypt-nl/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

🚧 👀 💻 🚇 🤔

Menno van den Ende

💻 🤔

Mike van Diepen

💻 ⚠️

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

About

PHP library to gather data from and interact with the KiyOh API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%