mirror of
https://github.com/1sept/oauth2-1sept.git
synced 2024-05-30 17:38:52 +03:00
22 lines
604 B
Markdown
Executable File
22 lines
604 B
Markdown
Executable File
# September First OAuth2 client provider
|
|
[](LICENSE.md)
|
|
|
|
This package provides [September First](https://api.1sept.ru) integration for [OAuth2 Client](https://github.com/thephpleague/oauth2-client) by the League.
|
|
|
|
## Installation
|
|
|
|
Just execute:
|
|
```sh
|
|
composer require 1sept/oauth2-1sept
|
|
```
|
|
|
|
## Usage
|
|
|
|
```php
|
|
$provider = new \Sept\OAuth2\Client\Provider\SeptemberFirstProvider([
|
|
'clientId' => 'client_id',
|
|
'clientSecret' => 'secret',
|
|
'redirectUri' => 'https://example.org/oauth-endpoint',
|
|
]);
|
|
```
|