PHPackages                             kolovious/melisocialite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. kolovious/melisocialite

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

kolovious/melisocialite
=======================

Mercadolibre Laravel Socialite Integration

v0.1.13(8y ago)61.2k15[3 issues](https://github.com/kolovious/meli-socialite/issues)MITPHPCI failing

Since Apr 7Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/kolovious/meli-socialite)[ Packagist](https://packagist.org/packages/kolovious/melisocialite)[ RSS](/packages/kolovious-melisocialite/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (15)Used By (0)

Mercadolibre Laravel Socialite Provider
=======================================

[](#mercadolibre-laravel-socialite-provider)

Laravel Socialite provider for Mercadolibre OAuth authentication.

**Supports Laravel 9.x, 10.x, 11.x, and 12.x**

License
-------

[](#license)

Mercadolibre Laravel Socialite is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

Installation
------------

[](#installation)

```
composer require kolovious/meli-socialite

```

### Configuration

[](#configuration)

**Laravel 11.x &amp; 12.x (Auto-Discovery)**

For Laravel 11 and 12, the service provider and facade are automatically discovered. You can skip the manual registration steps below.

**Laravel 9.x &amp; 10.x (Manual Registration)**

After installing the Socialite library, register the `Kolovious\MeliSocialite\MeliSocialiteServiceProvider` in your `config/app.php` configuration file after the Socialite Service Provider:

```
'providers' => [

    // Other service providers...
    Laravel\Socialite\SocialiteServiceProvider::class,

    Kolovious\MeliSocialite\MeliSocialiteServiceProvider::class,

],
```

Also the Meli Facade is available for actions with the API

```
'alias' => [
    // Other alias...

    'Meli' => Kolovious\MeliSocialite\Facade\Meli::class,

],
```

You will also need to add credentials for the OAuth services your application utilizes. These credentials should be placed in your `config/services.php` configuration file:

```
'meli' => [
    'client_id' => 'your-meli-app-id',
    'client_secret' => 'your-meli-secret-code',
    'redirect' => 'http://your-callback-url',
],
```

### Basic Usage

[](#basic-usage)

Next, you are ready to authenticate users! You will need two routes: one for redirecting the user to the OAuth provider, and another for receiving the callback from the provider after authentication. We will access Socialite using the `Socialite` facade:

```
