PHPackages                             compwright/oauth2-fieldedge - 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. compwright/oauth2-fieldedge

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

compwright/oauth2-fieldedge
===========================

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

v1.1.0(1y ago)08.8k↓11.9%MITPHPPHP ^7.4 || ^8.0

Since Dec 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/compwright/oauth2-fieldedge)[ Packagist](https://packagist.org/packages/compwright/oauth2-fieldedge)[ GitHub Sponsors](https://github.com/compwright)[ RSS](/packages/compwright-oauth2-fieldedge/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

FieldEdge Provider for OAuth 2.0 Client
=======================================

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

[![Latest Version](https://camo.githubusercontent.com/20cbe3d56274761a8429179d6277c05f93554e13fba9fae5a22f8e6bd298d063/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f636f6d707772696768742f6f61757468322d6669656c64656467652e7376673f7374796c653d666c61742d737175617265)](https://github.com/compwright/oauth2-fieldedge/releases)[![Total Downloads](https://camo.githubusercontent.com/c16b4966b6409e449294d884329f92ce0d3bf6bdd2b62ff02f10280ce127a7c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6d707772696768742f6f61757468322d6669656c64656467652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/compwright/oauth2-fieldedge)

This package provides FieldEdge 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 compwright/oauth2-fieldedge league/oauth2-client

```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\Compwright\OAuth2_Fieldedge\Provider` as the provider.

### Example: Client Credentials Flow

[](#example-client-credentials-flow)

```
$provider = new Compwright\OAuth2_Fieldedge\Provider([
    'clientId'      => '{fieldedge-client-id}',
    'clientSecret'  => '{fieldedge-api-key}',
]);

// Get an access token
$token = $provider->getAccessToken('client_credentials');

// Use the token to interact with an API on the users behalf
echo $token->getToken();

// The token is really a JWT, getResourceOwnerId() extracts the company_id claim
echo $token->getResourceOwnerId();
```

Testing
-------

[](#testing)

```
$ make test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/compwright/oauth2-fieldedge/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Jonathon Hill](https://github.com/compwright)
- [All Contributors](https://github.com/compwright/oauth2-fieldedge/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/compwright/oauth2-fieldedge/blob/master/LICENSE) for more information.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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 ~725 days

Total

2

Last Release

577d ago

PHP version history (2 changes)v1.0.0PHP ^7.4 || ^8

v1.1.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/138688?v=4)[Jonathon Hill](/maintainers/compwright)[@compwright](https://github.com/compwright)

---

Tags

clientprovideroauthoauth2authorizationauthorisationfieldedge

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/compwright-oauth2-fieldedge/health.svg)

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

###  Alternatives

[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.7k147.0M289](/packages/league-oauth2-server)[stevenmaguire/oauth2-keycloak

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

2306.4M45](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

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

1152.8M12](/packages/patrickbussmann-oauth2-apple)[amocrm/amocrm-api-library

amoCRM API Client

185798.9k6](/packages/amocrm-amocrm-api-library)[omines/oauth2-gitlab

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

36779.2k16](/packages/omines-oauth2-gitlab)[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

261.8M1](/packages/mollie-oauth2-mollie-php)

PHPackages © 2026

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