PHP code example of mvdnbrk / kiyoh-php-api

1. Go to this page and download the library: Download mvdnbrk/kiyoh-php-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mvdnbrk / kiyoh-php-api example snippets


$feed = $client->feed->get();

$feed = $kiyoh->feed->limit(25)->get();

$feed = $kiyoh->feed->withMigrated()->get();

$feed->reviews->each(function ($review) {
    $review->rating;
    $review->recommendation;
    $review->hasHeadline();
    $review->headline;
    $review->hasText();
    $review->text;
    $review->createdAt;
    $review->updatedAt;

    $review->author->hasName();
    $review->author->name;
    $review->author->hasLocality();
    $review->author->locality;
});

$feed->company->id;
$feed->company->name;
$feed->company->reviewCount;
$feed->company->averageRating;
$feed->company->recommendationPercentage;
bash
composer 
 php
$client = new \Mvdnbrk\Kiyoh\Client();

$client->setApiKey('your-secret-hash');
bash
php artisan migrate
bash
php artisan vendor:publish --tag=kiyoh-config
bash
php artisan vendor:publish --tag=kiyoh-migrations