Download the PHP package kolovious/melisocialite without Composer
On this page you can find all versions of the php package kolovious/melisocialite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kolovious/melisocialite
More information about kolovious/melisocialite
Files in kolovious/melisocialite
Package melisocialite
Short Description Mercadolibre Laravel Socialite Integration
License MIT
Informations about the package melisocialite
Mercadolibre Laravel Socialite Provider
Laravel Socialite provider for Mercadolibre OAuth authentication.
Supports Laravel 9.x, 10.x, 11.x, and 12.x
License
Mercadolibre Laravel Socialite is open-sourced software licensed under the MIT license
Installation
composer require kolovious/meli-socialite
Configuration
Laravel 11.x & 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 & 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:
Also the Meli Facade is available for actions with the API
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:
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:
The redirect method takes care of sending the user to the OAuth provider, while the user method will read the incoming request and retrieve the user's information from the provider.
Of course, you will need to define routes to your controller methods:
Retrieving User Details
Once you have a user instance, you can grab a few more details about the user: