2017 © Pedro Peláez
 

library oauth

OAuth is a simple social media login library. It supports multiple providers for both 1.0 and 2.0 OAuth open standard for authorization.

image

jakubpas/oauth

OAuth is a simple social media login library. It supports multiple providers for both 1.0 and 2.0 OAuth open standard for authorization.

  • Wednesday, February 1, 2017
  • by jakubpas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Synopsis

OAuth is a simple social media login library. It supports multiple providers for both 1.0 and 2.0 OAuth open standard for authorization., (*1)

Code Example

Simple facebook login example:, (*2)

<?php
use JakubPas\Oauth;

$oauth = new JakubPas\Oauth\Connector(
    'Facebook',
    'facebook application id ', 
    'facebook application secret', 
    'http://www.example.com/redirect/after/authorization',
    'email'
);
if (!isset($_POST[$oauth->getResponseType()])) {
    $oauth->authorize();
} else {
    $userProfile = $oauth->getUserProfile($_POST[$oauth->getResponseType()]);
    $data = json_decode($userProfile);
    // Login here....
}

Motivation

The idea of this package is to create simple composer auto-loadeded library for OAuth authorization., (*3)

Installation

composer require jakubpas/oauth, (*4)

API Reference

The API Reference are yet to be added., (*5)

Tests

The test are yet to be added., (*6)

Contributors

Jakub Pas 2015, (*7)

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version., (*8)

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details., (*9)

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/., (*10)

The Versions

01/02 2017

dev-master

9999999-dev http://jakubpas.net

OAuth is a simple social media login library. It supports multiple providers for both 1.0 and 2.0 OAuth open standard for authorization.

  Sources   Download

GPL

The Requires

  • php >=5.4.0

 

by Jakub Pas

oauth google facebook

01/02 2017

1.0.2

1.0.2.0 http://jakubpas.net

OAuth is a simple social media login library. It supports multiple providers for both 1.0 and 2.0 OAuth open standard for authorization.

  Sources   Download

GPL

The Requires

  • php >=5.4.0

 

by Jakub Pas

oauth google facebook

31/07 2015

1.0.1

1.0.1.0 http://jakubpas.net

OAuth is a simple social media login library. It supports multiple providers for both 1.0 and 2.0 OAuth open standard for authorization.

  Sources   Download

GPL

The Requires

  • php >=5.4.0

 

by Jakub Pas

oauth google facebook

30/07 2015

1.0.0

1.0.0.0 http://jakubpas.net

OAuth is a simple social media login library. It supports multiple providers for both 1.0 and 2.0 OAuth open standard for authorization.

  Sources   Download

GPL

The Requires

  • php >=5.4.0

 

by Jakub Pas

oauth google facebook