Laravel wrapper for the MercadoLibre API Client
zephia/laravel-mercadolibre is a Laravel package for laravel wrapper for the mercadolibre api client.
It currently has 10 GitHub stars and 758 downloads on Packagist (latest version v0.1.1).
Install it with composer require zephia/laravel-mercadolibre.
Discover more Laravel packages by zephia
or browse all Laravel packages to compare alternatives.
Last updated
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)