2017 © Pedro Peláez
 

library oauth2-brivo

Brivo Provider for OAuth2 client

image

drewhammond/oauth2-brivo

Brivo Provider for OAuth2 client

  • Wednesday, March 14, 2018
  • by drewhammond
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Brivo OnAir Provider for OAuth 2.0 Client

Build Status License Latest Stable Version, (*1)

This package provides Brivo OnAir OAuth 2.0 support for the PHP League's OAuth 2.0 Client., (*2)

Installation

To install, use composer:, (*3)

$ composer require drewhammond/oauth2-brivo

Usage

The example below is taken from a Laravel project with the BRIVO_CLIENT_ID and BRIVO_CLIENT_SECRET defined in the project .env file., (*4)

$provider = new \Drewhammond\OAuth2\Client\Provider\Brivo([
    'clientId'     => getenv('BRIVO_CLIENT_ID'),
    'clientSecret' => getenv('BRIVO_CLIENT_SECRET'),
]);

// Using the password grant type
$accessToken = $provider->getAccessToken('password', [
    'username' => getenv('BRIVO_USERNAME'),
    'password' => getenv('BRIVO_PASSWORD'),
]);

// Do something with your access token...
$token = $accessToken->getToken();
$expires = $accessToken->getExpires();

Support

Please open a new issue if you run into any problems., (*5)

License

MIT License, (*6)

Copyright (c) 2018 Drew Hammond, (*7)

The Versions

14/03 2018

dev-master

9999999-dev https://github.com/drewhammond/oauth2-brivo

Brivo Provider for OAuth2 client

  Sources   Download

MIT

The Requires

 

The Development Requires

oauth oauth2 brivo

14/03 2018
13/03 2018
13/03 2018

0.2.0

0.2.0.0

Brivo Provider for OAuth2 client

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2018

0.1.0

0.1.0.0

Brivo Provider for OAuth2 client

  Sources   Download

MIT

The Requires

 

The Development Requires