Admitad OAuth2 Provider for Laravel Socialite
5,747
1
4
Package Data
Maintainer Username: m1guelpf
Maintainer Contact: boston@hype.ru (Nikolay Kirsh)
Package Create Date: 2017-04-06
Package Last Update: 2024-11-07
Home Page: https://socialiteproviders.com/Admitad/
Language: PHP
License: MIT
Last Refreshed: 2024-12-19 03:21:07
Package Statistics
Total Downloads: 5,747
Monthly Downloads: 303
Daily Downloads: 11
Total Stars: 1
Total Watchers: 4
Total Forks: 0
Total Open Issues: 0

Admitad

composer require socialiteproviders/admitad

Installation & Basic Usage

Please see the Base Installation Guide, then follow the provider specific instructions below.

Add configuration to config/services.php

'admitad' => [
    'client_id' => env('ADMITAD_KEY'),
    'client_secret' => env('ADMITAD_SECRET'),
    'redirect' => env('ADMITAD_REDIRECT_URI')
],

Add provider event listener

Configure the package's listener to listen for SocialiteWasCalled events.

Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        'SocialiteProviders\\Admitad\\AdmitadExtendSocialite@handle',
    ],
];

Usage

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

return Socialite::with('admitad')->redirect();

Returned User fields

  • id
  • nickname
  • name
  • email

Reference