PHP code example of sergey-sla / oauth2-vkontakte

1. Go to this page and download the library: Download sergey-sla/oauth2-vkontakte 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-vkontakte example snippets


$provider = new J4k\OAuth2\Client\Provider\Vkontakte([
    'clientId' => '1234567',
    'clientSecret' => 's0meRe4lLySEcRetC0De',
    'redirectUri' => 'https://example.org/oauth-endpoint',
]);