winkelco/mercadolibre
Composer 安装命令:
composer require winkelco/mercadolibre
包简介
Laravel wrapper for the MercadoLibre API Client
README 文档
README
This package is a wrapper of MercadoLibre API Client PHP Class for Laravel Framework.
Installation
Using composer
Run the following command and provide the latest stable version:
composer require winkelco/mercadolibre
Then register this service provider with Laravel in config/app.php:
'providers' => [ ... WinkelCo\MercadoLibre\Provider\MercadoLibreServiceProvider::class, ... ]
Publish config file:
php artisan vendor:publish --provider="WinkelCo\MercadoLibre\Provider\MercadoLibreServiceProvider" --tag="config"
Add MERCADOLIBRE_APP_KEY and MERCADOLIBRE_APP_SECRET constants to your .env file:
MERCADOLIBRE_APP_KEY=YOUR-MERCADOLIBRE-APP-KEY
MERCADOLIBRE_APP_SECRET=YOUR-MERCADOLIBRE-APP-SECRET
Usage
Get user data
See fields documentation at official MercadoLibre API reference
<?php /** * User Show */ $user = app('meli_api')->userShow('MLA123456789'); var_dump($user); // object(WinkelCo\MercadoLibre\Entity\User)
统计信息
- 总下载量: 3.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-19