1. Go to this page and download the library: Download rivio/rivio-php-sdk 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/ */
rivio / rivio-php-sdk example snippets
y credentials from Rivio Dashboard (http://dashboard.getrivio.com/dashboard/settings/business)
$rivio = new Rivio('api_key','secret_key');
//Get the RIVIO script
$rivio_init_script=$rivio->get_init_js();
$rivio_embed_html=$rivio->product_reviews_widget(
"1492411012", //$product_id REQUIRED
"Samsung Galaxy S6", //$product_name REQUIRED
"https://example.com/products/galaxy-s6", //$product_url OPTIONAL
"https://images.example.com/big/200", //$product_image_url OPTIONAL
"This is the product description", //$product_description OPTIONAL
"1234567890123", //$product_barcode OPTIONAL
"Mobile phone", //$product_category OPTIONAL
"Samsung", //$product_brand OPTIONAL
"499", //$product_price OPTIONAL
$reviews_html //$reviews_html OPTIONAL (from product_reviews_html)
);