jokerov / oauth2-mailru
Mail.ru OAuth2 客户端提供程序,用于 The PHP League OAuth2-Client
v1.0.1
2023-05-15 12:45 UTC
Requires
- php: ^7.3 || ^8.0
- league/oauth2-client: ^2.3
Requires (Dev)
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-09-06 23:32:30 UTC
README
此软件包提供了Mail.ru与OAuth2 客户端的集成。有关 Mail.Ru OAuth 的更多信息,请参阅其文档。
安装
composer require jokerov/oauth2-mailru
用法
$provider = new Jokerov\OAuth2\Client\Provider\Mailru([ 'clientId' => 'de8ad9b26d4de22c3adc4d72b9bf31af', 'clientSecret' => '380c6afa85df4a7f1d40525e6be42e01', 'redirectUri' => 'https://example.com/oauth2-endpoint', ]);