PHP code example of sergey-sla / oauth2-yandex
1. Go to this page and download the library: Download sergey-sla/oauth2-yandex 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/ */
sergey-sla / oauth2-yandex example snippets
$provider = new Aego\OAuth2\Client\Provider\Yandex([
'clientId' => 'b80bb7740288fda1f201890375a60c8f',
'clientSecret' => 'f23ccd066f8236c6f97a2a62d3f9f9f5',
'redirectUri' => 'https://example.org/oauth-endpoint',
]);