mirror of
https://github.com/1sept/oauth2-1sept.git
synced 2024-05-30 17:38:52 +03:00
30 lines
721 B
Markdown
Executable File
30 lines
721 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
|
|
|
|
Add to `composer.json`:
|
|
```
|
|
"repositories": [{
|
|
"type": "vcs",
|
|
"url": "https://github.com/1sept/oauth2-1sept"
|
|
}],
|
|
```
|
|
|
|
Then execute:
|
|
```sh
|
|
composer require 1sept/oauth2-1sept
|
|
```
|
|
|
|
## Usage
|
|
|
|
```php
|
|
$provider = new Sept\OAuth2\Client\Provider\SeptemberFirst([
|
|
'clientId' => 'client_id',
|
|
'clientSecret' => 'secret',
|
|
'redirectUri' => 'https://example.org/oauth-endpoint',
|
|
]);
|
|
```
|