Download the PHP package informeren/oauth2-mobilepay without Composer
On this page you can find all versions of the php package informeren/oauth2-mobilepay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download informeren/oauth2-mobilepay
More information about informeren/oauth2-mobilepay
Files in informeren/oauth2-mobilepay
Package oauth2-mobilepay
Short Description MobilePay OAuth 2.0 Client Provider for The PHP League OAuth2-Client
License MIT
Homepage https://github.com/informeren/oauth2-mobilepay
Informations about the package oauth2-mobilepay
MobilePay Provider for OAuth 2.0 Client
This package provides MobilePay OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
This package is compliant with PSR-1, PSR-4 and PSR-12. If you notice compliance oversights, please send a patch via pull request.
Requirements
The following versions of PHP are supported.
- PHP 7.3
- PHP 7.4
Install
Use composer to install the package:
Usage
The clientId
and clientSecret
values are provided by MobilePay. The rest of the values are provided by you.
Create authorization URL
After the first request, you must use the same code_verifier
value for all subsequent authorization requests, so store it in a safe place.
Open the resulting URL in a browser and accept the request. You will be redirected to the redirectUri
and the authorization code will be available in the code
URL parameter.
Use authorization code to get access token
Refresh access token
Command-line interface
The package includes a simple command-line interface to the most common operations. Run it without arguments for usage instructions.
Use the following command to generate an authorization URL and open it in your default browser.
Testing
Tests can be run with:
Static analysis can be run with:
Style checks can be run with:
Documentation
License
The MIT License (MIT). Please see License File for more information.
All versions of oauth2-mobilepay with dependencies
ext-json Version *
ext-openssl Version *
lcobucci/jwt Version ^3.3
league/oauth2-client Version ^2.0
phpseclib/phpseclib Version ^2.0
web-token/jwt-core Version ^2.1