mailxpert / oauth2-mailxpert
mailXpert OAuth 2.0 Client Provider for the PHP League OAuth 2.0 Client
0.1.0
2018-11-14 16:18 UTC
Requires
- php: ^5.6|^7.0
- league/oauth2-client: ^2.0
Requires (Dev)
- mockery/mockery: ^1.2
- phpunit/phpunit: ^5.0
- symfony/var-dumper: ^3.4
This package is auto-updated.
Last update: 2024-11-15 11:41:45 UTC
README
This package provides Mailxpert OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Installation
To install, use composer:
composer require mailxpert/oauth2-mailxpert
Usage
Usage is the same as The League's OAuth client, using \Mailxpert\OAuth2\Client\Provider\Mailxpert
as the provider.
Authorization Code Flow
$provider = new Mailxpert\OAuth2\Client\Provider\Mailxpert([ 'clientId' => '{mailxpert-client-id}', 'clientSecret' => '{mailxpert-client-secret}', 'redirectUri' => 'https://example.com/redirect-url' ]);
Testing
$ ./vendor/bin/phpunit
Credits
License
The MIT License (MIT). Please see License File for more information.