2017 © Pedro Peláez
 

library github-oauth2

image

ericivan/github-oauth2

  • Sunday, April 22, 2018
  • by Ericivan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

基本配置

  1. app.php 加入 \Github\GithubServiceProvider::class,, (*1)

  2. aliases 加入 Facade 'Github' => \Github\Facades\Github::class,, (*2)

  3. serives.php 中加入配置项, (*3)

        'github'=>[
            'client_id' => 'client_id',
            'client_secret' => 'client_secret',
            'redirect_url' => 'redirect_url',
    ]

基本使用

获取登录跳转地址, (*4)

    Github::with('github')->redirect();

回调地址获取登录用户, (*5)

    $user=Github::with('github')->user();

The Versions

22/04 2018

1.0.0.x-dev

1.0.0.9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Ericivan

22/04 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Ericivan

19/04 2018

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Ericivan