Package Data | |
---|---|
Maintainer Username: | mauro-moreno |
Maintainer Contact: | moreno.mauro.emanuel@gmail.com (Mauro Moreno) |
Package Create Date: | 2016-10-14 |
Package Last Update: | 2018-05-22 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:14:38 |
Package Statistics | |
---|---|
Total Downloads: | 757 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 9 |
Total Watchers: | 7 |
Total Forks: | 5 |
Total Open Issues: | 1 |
This package is a wrapper of MercadoLibre API Client PHP Class for Laravel Framework.
Using composer
Run the following command and provide the latest stable version:
composer require zephia/laravel-mercadolibre
Then register this service provider with Laravel in config/app.php:
'providers' => [
...
Zephia\LaravelMercadoLibre\Provider\MercadoLibreServiceProvider::class,
...
]
Publish config file:
php artisan vendor:publish --provider="Zephia\LaravelMercadoLibre\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
See fields documentation at official MercadoLibre API reference
<?php
/**
* User Show
*/
$user = app('meli_api')->userShow('MLA123456789');
var_dump($user);
// object(Zephia\MercadoLibre\Entity\User)