jzecca / oauth2-edenred
Edenred OAuth 2.0 Client Provider for The PHP League OAuth2-Client
Installs: 4 953
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.3
- league/oauth2-client: ^2.0
Requires (Dev)
- eloquent/phony-phpunit: ^7.0
- friendsofphp/php-cs-fixer: ^3.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-03-29 00:52:13 UTC
README
This package provides Edenred Connect OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Installation
To install, use composer:
composer require jzecca/oauth2-edenred
Usage
Usage is the same as The League's OAuth client, using \Jzecca\OAuth2\Client\Provider\Edenred
as the provider.
Available Options
The Edenred
provider has the following options:
Name | Type | Default | Description |
---|---|---|---|
locale |
string |
Gives a hint about the desired display language of the login UI | |
loginHint |
string |
Pre-fills the username field on the login page | |
sandbox |
bool |
false |
Uses the sandbox API if set to true |
scopes |
array |
[] |
Adds one or more registered scopes |
tenant |
string |
Passes a tenant name to the user service |
Testing
Tests can be run with:
composer test
Code style can be fixed with:
composer fix