PHPackages                             codezero/oauth - 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. codezero/oauth

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

codezero/oauth
==============

Social authentication without the headaches.

0.0.1(11y ago)164MITPHPPHP &gt;=5.4.0

Since May 5Pushed 11y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

OAuth
=====

[](#oauth)

![GitHub release](https://camo.githubusercontent.com/6e02d67023025ae34281828a6282dfaa1026049c8ee097f6aef2ce706d50b2bb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f636f64657a65726f2d62652f6f617574682e737667)![License](https://camo.githubusercontent.com/9ab37a797729c1b0c14a1fc3a6d935c9761237cf7cedac345dd0d5f966dad8ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f64657a65726f2f6f617574682e737667)[![Total Downloads](https://camo.githubusercontent.com/7a408e962c01561a80288c86dbacaf48c1da6d2f3f2af8c71143fa68463d3cff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64657a65726f2f6f617574682e737667)](https://packagist.org/packages/codezero/oauth)

### Social authentication without the headaches!

[](#social-authentication-without-the-headaches)

This package is a wrapper around [logical-and/php-oauth](https://github.com/logical-and/php-oauth) and aims to make it even easier to authenticate users via third party providers. Supports vanilla PHP and [Laravel 5](http://laravel.com/).

Installation
------------

[](#installation)

Install this package through Composer:

```
composer require codezero/oauth

```

Register Apps
-------------

[](#register-apps)

You will need to create an App with each of the providers that you wish to support. They will give you an App ID (or key) and an App secret.

Vanilla PHP Implementation
--------------------------

[](#vanilla-php-implementation)

### Create a Configuration File

[](#create-a-configuration-file)

Create a `providers.php` configuration file and store your keys in it:

```
