think.studio/laravel-reviewsio-api
最新稳定版本:1.2.0
Composer 安装命令:
composer require think.studio/laravel-reviewsio-api
包简介
Laravel reviews.io api.
关键字:
README 文档
README
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
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-17