New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

winkelco/mercadolibre

Laravel wrapper for the MercadoLibre API Client
3,719
Install
composer require winkelco/mercadolibre
Latest Version:1.4
Laravel:6 – 13
License:MIT
Last Updated:Feb 17, 2021
Links: GitHub  ·  Packagist
Maintainer: winkelco

Laravel MercadoLibre API Client

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)

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released License
1.4 MIT
1.3 MIT
1.2 MIT
1.1 MIT
1.0 MIT