2017 © Pedro Peláez
 

library socialite-china

Laravel wrapper around OAuth 1 & OAuth 2 libraries for china.

image

lialosiu/socialite-china

Laravel wrapper around OAuth 1 & OAuth 2 libraries for china.

  • Thursday, August 13, 2015
  • by lialosiu
  • Repository
  • 1 Watchers
  • 1 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

lialosiu/socialite-china

Introduction

Laravel Socialite OAuth authentication for China., (*1)

Usage

composer require "lialosiu/socialite-china:~1.2"

Add provider Lialosiu\SocialiteChina\SocialiteChinaServiceProvider::class in your config/app.php, (*2)

Add aliases 'SocializeChina' => Lialosiu\SocialiteChina\Facades\Socialite::class, in your config/app.php, (*3)

Add config in config/services.php :, (*4)

'weibo'    => [
    'client_id'     => env('WEIBO_APP_KEY', ''),
    'client_secret' => env('WEIBO_APP_SECRET', ''),
    'redirect'      => env('WEIBO_CALLBACK_URL', ''),
],

'qq'       => [
    'client_id'     => env('QQ_APP_KEY', ''),
    'client_secret' => env('QQ_APP_SECRET', ''),
    'redirect'      => env('QQ_CALLBACK_URL', ''),
],

'weixin'       => [
    'client_id'     => env('WEIXIN_APP_KEY', ''),
    'client_secret' => env('WEIXIN_APP_SECRET', ''),
    'redirect'      => env('WEIXIN_CALLBACK_URL', ''),
],

Add env in .env :, (*5)

WEIBO_APP_KEY=YourWeiboAppKey
WEIBO_APP_SECRET=YourWeiboAppSecret
WEIBO_CALLBACK_URL=YourWeiboCallBackUrl

QQ_APP_KEY=YourQqAppKey
QQ_APP_SECRET=YourQqAppKey
QQ_CALLBACK_URL=YourQqCallBackUrl

WEIXIN_APP_KEY=YourWeixinAppKey
WEIXIN_APP_SECRET=YourWeixinAppKey
WEIXIN_CALLBACK_URL=YourWeixinCallBackUrl

Documentation

You can pass the token manually like, (*6)

SocializeChina::with('weibo')->user('UserWeiboToken')

Other same with the laravel/socialite, (*7)

Require

laravel/socialite, (*8)

License

MIT license, (*9)

The Versions

13/08 2015

dev-master

9999999-dev

Laravel wrapper around OAuth 1 & OAuth 2 libraries for china.

  Sources   Download

MIT

The Requires

 

by Avatar lialosiu

laravel oauth

25/06 2015

v1.2.0

1.2.0.0

Laravel wrapper around OAuth 1 & OAuth 2 libraries for china.

  Sources   Download

MIT

The Requires

 

by Avatar lialosiu

laravel oauth

24/06 2015

v1.1.0

1.1.0.0

Laravel wrapper around OAuth 1 & OAuth 2 libraries for china.

  Sources   Download

MIT

The Requires

 

by Avatar lialosiu

laravel oauth

24/06 2015

v1.0.1

1.0.1.0

Laravel wrapper around OAuth 1 & OAuth 2 libraries for china.

  Sources   Download

MIT

The Requires

 

by Avatar lialosiu

laravel oauth

20/05 2015

v1.0.0

1.0.0.0

Laravel wrapper around OAuth 1 & OAuth 2 libraries for china.

  Sources   Download

MIT

The Requires

 

by Avatar lialosiu

laravel oauth