Socialite Providers

website·Indexed 33 days ago

https://socialiteproviders.com/

A collection of OAuth providers for Laravel Socialite, including integrations for Spotify, Stripe, PayPal, Coinbase, Xero, and many others. Provides installation and basic usage guides for each supported service.

Tokens
121.9K
Snippets
1.5K
Records
1.7K
Agent score
70%

What's inside Socialite Providers

  1. Overview of SocialiteProviders and the Manager package

    SocialiteProviders is a collection of OAuth 1 & 2 packages designed to extend Laravel Socialite. It utilizes a Manager package that implements the Observer Pattern to allow developers to add numerous third-party providers beyond those natively provided by Laravel Socialite. Only providers explicitly added to the listeners array will be active in the application.
  2. Register Etsy Socialite Provider in Laravel 10 and below

    For Laravel 10 or older, register the Etsy provider by adding the SocialiteWasCalled event listener to the listen array in app/Providers/EventServiceProvider.
    protected $listen = [
        \SocialiteProviders\Manager\SocialiteWasCalled::class => [
            // ... other providers
            \SocialiteProviders\Etsy\EtsyExtendSocialite::class.'@handle',
        ],
    ];
  3. Register the Pr0gramm provider event listener in Laravel 10 and below

    For Laravel 10 or older, add the Pr0grammExtendSocialite handler to the listen array within your app/Providers/EventServiceProvider to respond to SocialiteWasCalled events.
    protected $listen = [
        \SocialiteProviders\Manager\SocialiteWasCalled::class => [
            // ... other providers
            \SocialiteProviders\Pr0gramm\Pr0grammExtendSocialite::class.'@handle',
        ],
    ];
  4. Install Socialite provider for GitLab

    Install the GitLab Socialite provider using Composer to enable GitLab OAuth authentication in your Laravel project.
    composer require socialiteproviders/gitlab
  5. Register USOS provider event listener in Laravel 10 or below

    For Laravel 10 and earlier, add the UsosExtendSocialite handler to the listen array in your app/Providers/EventServiceProvider.
    protected $listen = [
        \SocialiteProviders\Manager\SocialiteWasCalled::class => [
            // ... other providers
            \SocialiteProviders\Usos\UsosExtendSocialite::class.'@handle',
        ],
    ];
  6. Register TikTok provider event listener in Laravel 10 or below

    For Laravel 10 and earlier, add the TikTok provider's handler to the $listen array within your app/Providers/EventServiceProvider.
    protected $listen = [
        \SocialiteProviders\Manager\SocialiteWasCalled::class => [
            // ... other providers
            \SocialiteProviders\TikTok\TikTokExtendSocialite::class.'@handle',
        ],
    ];
  7. Register Trello provider event listener in Laravel 11+

    In Laravel 11, the EventServiceProvider was removed. Register the Trello provider by adding a listener to the Event facade within the boot method of your AppServiceProvider.
    Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
        $event->extendSocialite('trello', \SocialiteProviders\Trello\Provider::class);
    });