PHPackages                             drewhammond/oauth2-brivo - 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. drewhammond/oauth2-brivo

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

drewhammond/oauth2-brivo
========================

Brivo Provider for OAuth2 client

0.2.2(8y ago)13.5k↓33.3%MITPHP

Since Mar 13Pushed 8y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Brivo OnAir Provider for OAuth 2.0 Client
=========================================

[](#brivo-onair-provider-for-oauth-20-client)

[![Build Status](https://camo.githubusercontent.com/ae5f0f4b63bf944704c4ec6f321a8a51889fd6a08655d452d1afa51caeeb00e6/68747470733a2f2f7472617669732d63692e6f72672f6472657768616d6d6f6e642f6f61757468322d627269766f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/drewhammond/oauth2-brivo)[![License](https://camo.githubusercontent.com/db7f318927deaf6c9fa16fd4db210403d80da7276290c7d7a5d140a50a99644e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6472657768616d6d6f6e642f6f61757468322d627269766f2e737667)](https://github.com/drewhammond/oauth2-brivo/blob/master/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/e99b949dd55278888fc49cf71fcb85832126a43ef614ffe2bcbf7c62f0aa2a15/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6472657768616d6d6f6e642f6f61757468322d627269766f2e737667)](https://packagist.org/packages/drewhammond/oauth2-brivo)

This package provides [Brivo OnAir](http://apidocs.brivo.com/) OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

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

[](#installation)

To install, use composer:

```
$ composer require drewhammond/oauth2-brivo

```

Usage
-----

[](#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.

```
$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
-------

[](#support)

Please [open a new issue](https://github.com/drewhammond/oauth2-brivo/issues) if you run into any problems.

License
-------

[](#license)

MIT License

Copyright (c) 2018 [Drew Hammond](https://github.com/drewhammond)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

2988d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01943e136cf188e8551ec7cec3e192e55f6ee472f86b141b41ae72b69263296a?d=identicon)[drewhammond](/maintainers/drewhammond)

---

Top Contributors

[![drewhammond](https://avatars.githubusercontent.com/u/2405390?v=4)](https://github.com/drewhammond "drewhammond (8 commits)")

---

Tags

oauthoauth2brivo

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/drewhammond-oauth2-brivo/health.svg)

```
[![Health](https://phpackages.com/badges/drewhammond-oauth2-brivo/health.svg)](https://phpackages.com/packages/drewhammond-oauth2-brivo)
```

###  Alternatives

[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

42121.2M118](/packages/league-oauth2-google)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

84016.7M61](/packages/knpuniversity-oauth2-client-bundle)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[league/oauth2-facebook

Facebook OAuth 2.0 Client Provider for The PHP League OAuth2-Client

32013.0M66](/packages/league-oauth2-facebook)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
