compwright/oauth2-fieldedge

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

Maintainers

Package info

github.com/compwright/oauth2-fieldedge

pkg:composer/compwright/oauth2-fieldedge

Transparency log

Fund package maintenance!

compwright

Statistics

Installs: 9 375

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v3.0.0 2026-08-24 17:34 UTC

This package is auto-updated.

Last update: 2026-08-24 18:18:34 UTC


README

Build Status Latest Version Total Downloads

This package provides FieldEdge OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Installation

To install, use composer:

composer require compwright/oauth2-fieldedge league/oauth2-client

Usage

Usage is the same as The League's OAuth client, using \Compwright\OAuth2\FieldEdge\ProviderFactory to create the provider instance.

Example: Client Credentials Flow

$provider = new Compwright\OAuth2\FieldEdge\ProviderFactory()->new(
    clientId: '{fieldedge-client-id}',
    clientSecret: '{fieldedge-client-secret}',
);

// Get an access token
$token = $provider->getAccessToken('client_credentials', ['target_id' => 'my_target_id']);

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

Testing

$ make test

Upgrading

Please see UPGRADING for instructions on upgrading from previous versions (1.x, 2.x).

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.