PHP code example of jokerov / oauth2-mailru

1. Go to this page and download the library: Download jokerov/oauth2-mailru library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jokerov / oauth2-mailru example snippets


$provider = new Jokerov\OAuth2\Client\Provider\Mailru([
    'clientId'     => 'de8ad9b26d4de22c3adc4d72b9bf31af',
    'clientSecret' => '380c6afa85df4a7f1d40525e6be42e01',
    'redirectUri'  => 'https://example.com/oauth2-endpoint',
]);