Download the PHP package mvdnbrk/kiyoh-php-api without Composer
On this page you can find all versions of the php package mvdnbrk/kiyoh-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package kiyoh-php-api
kiyoh-php-api
Simple PHP API to fetch your KiyOh reviews from the JSON feed.
For the previous version of the KiyOh feed please use the 1.0 branch.
Installation
You can install the package via composer:
Getting started
Initialize the KiyOh client and set your API key and company ID:
Retrieve the KiyOh feed
By default this will retrieve the 10 most recent reviews.
You may change the number of reviews to retrieve by using the limit()
method:
The migrated reviews from the previous KiyOh platform are not included by default.
If you would like to retrieve the migrated reviews as well you may call the withMigrated()
method:
Reviews
Company properties and statistics
Usage with Laravel
Update your .env
file by adding your KiyOh sercret hash:
To create a kiyoh_reviews
table in your database run the migrate
command:
To import your reviews in the database run the kiyoh:import
command:
The table name can be changed in the kiyoh.php
config file.
To publish the config file run:
To publish the migration file run:
If you are not going to use the default migrations, you should call the Kiyoh::ignoreMigrations()
method in the register method of your AppServiceProvider
.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Mark van den Broek
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of kiyoh-php-api with dependencies
ext-json Version *
composer/ca-bundle Version ^1.2
guzzlehttp/guzzle Version ^7.1
illuminate/collections Version ^8.0