PHPackages                             opauth/github - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. opauth/github

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

opauth/github
=============

GitHub authentication strategy for Opauth

0.1.0(13y ago)2315.8k↓33.3%12[1 issues](https://github.com/opauth/github/issues)2MITPHPPHP &gt;=5.2.0

Since Jul 23Pushed 7y ago7 watchersCompare

[ Source](https://github.com/opauth/github)[ Packagist](https://packagist.org/packages/opauth/github)[ Docs](http://opauth.org)[ RSS](/packages/opauth-github/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (2)

Opauth-GitHub
=============

[](#opauth-github)

[Opauth](https://github.com/opauth/opauth) strategy for GitHub authentication.

Implemented based on  using OAuth2.

Opauth is a multi-provider authentication framework for PHP.

Demo:

Getting started
---------------

[](#getting-started)

1. Install Opauth-GitHub:

    ```
    cd path_to_opauth/Strategy
    git clone git://github.com/opauth/github.git GitHub
    ```

    or

    ```
    composer require opauth/github
    ```
2. Register a GitHub application at

    - Enter URL as your application URL (this can be outside of Opauth)
    - Callback URL: enter `http://path_to_opauth/github/oauth2callback`
3. Configure Opauth-GitHub strategy with `client_id` and `client_secret`.
4. Direct user to `http://path_to_opauth/github` to authenticate

Strategy configuration
----------------------

[](#strategy-configuration)

Required parameters:

```
