For getting user access key use following command:

PHOTO EMBED

Wed Oct 14 2020 21:04:33 GMT+0000 (Coordinated Universal Time)

Saved by @Vozro

$oauth = new VK\OAuth\VKOAuth();
$client_id = 1234567;
$redirect_uri = 'https://example.com/vk';
$display = VK\OAuth\VKOAuthDisplay::PAGE;
$scope = [VK\OAuth\Scopes\VKOAuthUserScope::WALL, VK\OAuth\Scopes\VKOAuthUserScope::GROUPS];
$state = 'secret_state_code';

$browser_url = $oauth->getAuthorizeUrl(VK\OAuth\VKOAuthResponseType::CODE, $client_id, $redirect_uri, $display, $scope, $state);
content_copyCOPY

https://github.com/VKCOM/vk-php-sdk