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

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

drewhammond/oauth2-availity
===========================

Availity Provider for OAuth2 client

0.2.0(8y ago)118MITPHP

Since Feb 21Pushed 8y ago1 watchersCompare

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

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

Availity Provider for OAuth 2.0 Client
======================================

[](#availity-provider-for-oauth-20-client)

[![Build Status](https://camo.githubusercontent.com/7549f20c27e536ed748925667e89025e3193c23c7cddf2097ecd6766e9d5822d/68747470733a2f2f7472617669732d63692e6f72672f6472657768616d6d6f6e642f6f61757468322d617661696c6974792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/drewhammond/oauth2-availity)[![License](https://camo.githubusercontent.com/63b81d45ef4278acfc810dd1433c14baff4c411f73b1ce8f27958b03c317b7f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6472657768616d6d6f6e642f6f61757468322d617661696c6974792e737667)](https://github.com/drewhammond/oauth2-availity/blob/master/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/4c0b249eb85e9fa307c73777e9c9e1e8d40d4f24b2b85eb64df039eaf5cc703b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6472657768616d6d6f6e642f6f61757468322d617661696c6974792e737667)](https://packagist.org/packages/drewhammond/oauth2-availity)

This package provides [Availity](https://developer.availity.com/partner/) 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-availity

```

Usage
-----

[](#usage)

The example below is taken from a Laravel project with the `AVAILITY_CLIENT_ID` and `AVAILITY_CLIENT_SECRET` defined in the project .env file.

```
  // Instantiate Availity provider
  $provider = new \Drewhammond\OAuth2\Client\Provider\Availity( [
    'clientId'     => getenv( 'AVAILITY_CLIENT_ID' ),
    'clientSecret' => getenv( 'AVAILITY_CLIENT_SECRET' ),
  ] );

  // Fetch access token using client_credentials grant (only grant type supported by Availity)
  $accessToken = $provider->getAccessToken( 'client_credentials' );

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

Support
-------

[](#support)

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

License
-------

[](#license)

MIT License

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

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

2

Last Release

3050d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2405390?v=4)[Drew Hammond](/maintainers/drewhammond)[@drewhammond](https://github.com/drewhammond)

---

Top Contributors

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

---

Tags

oauthoauth2availity

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[league/oauth2-google

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

42222.6M157](/packages/league-oauth2-google)[stevenmaguire/oauth2-keycloak

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

2276.2M36](/packages/stevenmaguire-oauth2-keycloak)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

84217.7M77](/packages/knpuniversity-oauth2-client-bundle)[thenetworg/oauth2-azure

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

24610.3M72](/packages/thenetworg-oauth2-azure)[league/oauth2-facebook

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

30013.6M79](/packages/league-oauth2-facebook)[patrickbussmann/oauth2-apple

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

1152.7M11](/packages/patrickbussmann-oauth2-apple)

PHPackages © 2026

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