24 lines
839 B
Markdown
24 lines
839 B
Markdown
# Mail.ru OAuth2 client provider
|
|
|
|
[](https://travis-ci.org/rakeev/oauth2-mailru)
|
|
[](https://packagist.org/packages/aego/oauth2-mailru)
|
|
[](https://packagist.org/packages/aego/oauth2-mailru)
|
|
|
|
This package provides [Mail.ru](http://my.mail.ru) integration for [OAuth2 Client](https://github.com/thephpleague/oauth2-client) by the League.
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
composer require aego/oauth2-mailru
|
|
```
|
|
|
|
## Usage
|
|
|
|
```php
|
|
$provider = new Aego\OAuth2\Client\Provider\Mailru([
|
|
'clientId' => '123456',
|
|
'clientSecret' => 'f23ccd066f8236c6f97a2a62d3f9f9f5',
|
|
'redirectUri' => 'https://example.org/oauth-endpoint',
|
|
]);
|
|
```
|