I can’t get to the point ... Today for the first time in my life with git I installed something on the site via the terminal ... I decided to ask how the VK api SDK works, but I couldn’t even connect)))) I don’t understand, I tried a lot of options , can not run ...
require __DIR__.'/vendor/autoload.php'; $vk = new \VK\Client\VKApiClient('5.92'); $oauth = new \VK\OAuth\VKOAuth(); $client_id = API_CLIENT_ID; $redirect_uri = 'http://site.ru/index.php'; $display = VKOAuthDisplay::PAGE; $scope = array(VKOAuthUserScope::WALL, VKOAuthUserScope::GROUPS); $state = 'secret_state_code'; $browser_url = $oauth->getAuthorizeUrl(VKOAuthResponseType::CODE, $client_id, $redirect_uri, $display, $scope, $state); Fatal error: Uncaught Error: Class 'VKOAuthDisplay' not found