2017 © Pedro Peláez
 

library socialite-baidu

image

hyancat/socialite-baidu

  • Saturday, August 29, 2015
  • by HyanCat
  • Repository
  • 1 Watchers
  • 2 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Socialite-Baidu

百度 OAuth2 账号连接 for Laravel 5.x., (*1)

Installation

  1. 安装 composer package:, (*2)

    composer require hyancat/socialite-baidu
  2. config/app.php 中 Laravel\Socialite\SocialiteServiceProvider 替换成 SocialiteProviders\Manager\ServiceProvider, (*3)

  3. app/Providers/EventServiceProvider.php 中添加一个监听器:SocialiteProviders\Manager\SocialiteWasCalled,如果已存在则忽略;并添加监听响应事件:Hyancat\SocialiteBaidu\BaiduExtendSocialite@handle, (*4)

    'SocialiteProviders\Manager\SocialiteWasCalled' => [
        // ...
        'Hyancat\SocialiteBaidu\BaiduExtendSocialite@handle',
    ],
    
  4. config/service.php 中添加一个配置项:, (*5)

    'baidu' => [
        'client_id'     => env('BAIDU_KEY'),
        'client_secret' => env('BAIDU_SECRET'),
        'redirect'      => env('BAIDU_REDIRECT_URL'),
    ],
    

Usage

详见官方文档 socialite 用法。, (*6)

License

MIT License., (*7)

The Versions

29/08 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

29/08 2015

v1.0

1.0.0.0

  Sources   Download

MIT

The Requires