weibo.com OAuth2 Provider for Laravel Socialite
123,531
35
4
Package Data
Maintainer Username: m1guelpf
Maintainer Contact: techxu@gmail.com (xyxu)
Package Create Date: 2015-06-29
Package Last Update: 2024-11-07
Home Page: https://socialiteproviders.com/Weibo/
Language: PHP
License: MIT
Last Refreshed: 2024-12-19 03:20:16
Package Statistics
Total Downloads: 123,531
Monthly Downloads: 182
Daily Downloads: 12
Total Stars: 35
Total Watchers: 4
Total Forks: 6
Total Open Issues: 0

Weibo

composer require socialiteproviders/weibo

Installation & Basic Usage

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

Add configuration to config/services.php.

'weibo' => [    
  'client_id' => env('WEIBO_CLIENT_ID'),  
  'client_secret' => env('WEIBO_CLIENT_SECRET'),  
  'redirect' => env('WEIBO_REDIRECT_URI') 
],

Add provider event listener

Configure the package's listener to the 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\\Weibo\\WeiboExtendSocialite@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('weibo')->redirect();