Download the PHP package kangaroorewards/oauth2-kangaroo-rewards without Composer
On this page you can find all versions of the php package kangaroorewards/oauth2-kangaroo-rewards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kangaroorewards/oauth2-kangaroo-rewards
More information about kangaroorewards/oauth2-kangaroo-rewards
Files in kangaroorewards/oauth2-kangaroo-rewards
Package oauth2-kangaroo-rewards
Short Description Kangaroo Rewards OAuth 2.0 Client Provider for The PHP League OAuth2-Client
License MIT
Informations about the package oauth2-kangaroo-rewards
Kangaroo Rewards Provider for OAuth 2.0 Client
This package provides Kangaroo Rewards OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
This package is compliant with PSR-1, PSR-12, PSR-4, and PSR-7. If you notice compliance oversights, please send a patch via pull request.
Requirements
The following versions of PHP are supported.
- PHP 8.1
- PHP 8.2
- PHP 8.3
- PHP 8.4
- PHP 8.5
Requires the curl and json extensions, and league/oauth2-client ^2.8.
Running PHP 7.x or older? Stay on the
2.xreleases.
Installation
Usage
Authorization Code Flow
Grants
On top of the grants shipped with league/oauth2-client
(authorization_code, refresh_token, client_credentials, password), this
package registers two Kangaroo-specific grants:
Resource owner
Every accessor returns null when the field is absent from the API response.
getBusinessId() and getBusinessName() read the business from the resource
owner response, and /me only returns it when asked. Point
urlResourceOwnerDetails at the include to populate them:
Testing
Auto-fix style issues with:
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.