Skip to content

The perfect PHP KiyOh API

License

Notifications You must be signed in to change notification settings

fixico/PHP-Kiyoh-API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The perfect PHP Kiyoh API

How to install?

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

Then start using the API using something like:

<?php
require_once('vendor/autoload.php');

$connector = 'YOUR_CONNECTOR_CODE'; // Change with your Connector code
$company = 1234; // Change with your Company number

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

/** @var \JKetelaar\Kiyoh\Models\Review[] $reviews */
$reviews = $kiyoh->getReviews();

var_dump($reviews[0]->getId());
// ..

/** @var \JKetelaar\Kiyoh\Models\Company $company */
$company = $kiyoh->getCompany();

var_dump($company->getTotalScore());
var_dump($company->getUrl());
var_dump($company->getCategory());
var_dump($company->getCategory()->getTitle());
var_dump($company->getAverageScores()->getQuestions());
// ..

Example outputs

$kiyoh->getReviews();

alt text

$kiyoh->getCompany();

alt text

About

The perfect PHP KiyOh API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%