PHP code example of eosvn / laravel-a2reviews-client-api
1. Go to this page and download the library: Download eosvn/laravel-a2reviews-client-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/ */
eosvn / laravel-a2reviews-client-api example snippets
use EOSVN\A2ReviewsClient\A2ReviewsClient;
$a2Review = new A2ReviewsClient();
$response = $a2Review->review->getProductReviews([
'handle' => '{product_handle}',
'limit' => 2 // Number record per page
]);