LaravelPackages.net
Acme Inc.
Toggle sidebar
think.studio/laravel-reviewsio-api

Laravel reviews.io api.

8
0
1.2.0
About think.studio/laravel-reviewsio-api

think.studio/laravel-reviewsio-api is a Laravel package for laravel reviews.io api.. It currently has 0 GitHub stars and 8 downloads on Packagist (latest version 1.2.0). Install it with composer require think.studio/laravel-reviewsio-api. Discover more Laravel packages by think.studio or browse all Laravel packages to compare alternatives.

Last updated

Laravel reviews.io api.

Packagist License Packagist Version Total Downloads Build Status Code Coverage Scrutinizer Code Quality

API docs are there.

NOTE: currently there is small coverage of api endpoints, and oriented to open api routes.
(Package is targeted to the tasks what I have, not for support fully api, sorry).

Installation

Install the package via composer:

composer require think.studio/laravel-reviewsio-api

Optionally you can publish the config file with:

php artisan vendor:publish --provider="Reviewsio\ServiceProvider" --tag="config"

Usage

use Reviewsio\Facades\Reviewsio;

/** @var \Reviewsio\Endpoints\ProductReviewBySku\Response $response */
$response = Reviewsio::api()
        ->productReviewBySku()
        ->sku('The Reach')
        ->paginate()
        ->call([
            'minRating' => 2,
        ]);
        
$reviewsCollection = $response->reviews();
$total = $response->total();
$perPage = $response->perPage();
$currentPage = $response->currentPage();

Credits

  • Think Studio
Comments