weibo.com OAuth2 Provider for Laravel Socialite
121,306
35
4
Package Data
Maintainer Username: m1guelpf
Maintainer Contact: techxu@gmail.com (xyxu)
Package Create Date: 2015-06-29
Package Last Update: 2024-04-01
Home Page: https://socialiteproviders.com/Weibo/
Language: PHP
License: MIT
Last Refreshed: 2024-04-15 15:11:03
Package Statistics
Total Downloads: 121,306
Monthly Downloads: 405
Daily Downloads: 18
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();