jketelaar / php-kiyoh-api
Allows you to interact with KiyOh using PHP
Installs: 70 115
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 10
Open Issues: 2
Requires
- php: ^8.0
- ext-simplexml: *
- guzzlehttp/guzzle: ^6.2 || ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.13
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-11-12 10:49:45 UTC
README
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());
Review output
var_dump($kiyoh->getCompany()->getReviews()[0]);
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!