Download the PHP package marshmallow/reviews-kiyoh without Composer
On this page you can find all versions of the php package marshmallow/reviews-kiyoh. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marshmallow/reviews-kiyoh
More information about marshmallow/reviews-kiyoh
Files in marshmallow/reviews-kiyoh
Package reviews-kiyoh
Short Description Connect your Kiyoh to your Laravel application
License MIT
Homepage https://github.com/Marshmallow-Development/
Informations about the package reviews-kiyoh
Laravel Kiyoh Reviews
Installation
You can install this package using composer.
Setup
To start using Kiyoh you need to publish the config and update the config accordingly. You need to add hash
, location_id
and feed_hash
to config/kiyoh.php
.
Invites
Feed aggregate information
Using feed information is very easy. Use the Kiyoh
facade to access feed data. Available methods are listed below. Please note that by default the XML feed of Kiyoh will be cached using your default CACHE_DRIVER
. The feed will be cached for 1 hour. You can change this in config/kiyoh.php
. If for some reason the feed is unavailable an exeption will be thrown. If you are using these methods in blade you can prefix the methods with dontFail()
. If you use dontFail()
all methods will return 0
.
Available methods
- Kiyoh::feed()->average()
- Kiyoh::feed()->count()
- Kiyoh::feed()->average12months()
- Kiyoh::feed()->count12months()
-
Kiyoh::feed()->recommendation()
- Kiyoh::feed()->getAttribute('average')
Store the reviews in your own database
If you wish to get all the reviews and store them in you own database or do whatever with it, you can get them with the methods below:
Products
php artisan marshmallow:resource KiyohProduct Reviews\Kiyoh
Copyright (c) 2020 marshmallow.
License
The MIT License (MIT). Please see License File for more information.
Tests during development
php artisan test packages/marshmallow/reviews/kiyoh