{"repo":"VKCOM/vk-php-sdk","free":true,"listed":false,"github":"https://github.com/VKCOM/vk-php-sdk","clone":"git clone https://github.com/VKCOM/vk-php-sdk.git","description":"PHP library for working with VK API","language":"PHP","stars":216,"topics":["php","vk","api"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"vkcom/vk-php-sdk PHP library for VK API interaction, includes OAuth 2.0 authorization and API methods. Full VK API features documentation can be found here. This library has been created using the VK API JSON Schema. It can be found here. It uses VK API version 5.199 1. Prerequisites PHP 7 or PHP 8 2. Installation The VK PHP SDK can be installed using Composer by running the following command: 3. Initialization Create VKApiClient object using the following code: Also you can initialize VKApiClient with different API version and different language like this: 4. Authorization The library provides the authorization flows for user based on OAuth 2.0 protocol implementation in vk.com API. Please read the full documentation before you start. 4.1. Authorization Code Flow OAuth 2.0 Authorization Code Flow allows calling methods from the server side. This flow includes two steps — obtaining an authorization code and exchanging the code for an access token. Primarily you should obtain the \"code\" (manual user access and manual community access) by redirecting the user to the authorization page using the following method: Create VKOAuth object first: 4.1.1. For getting user access key use following command: 4.1.2. Or if you want to get community access key use: User access key and community access key uses different values inside scope array After successful authorization user's browser will be redirected to the specified redirect uri . Meanwhile the code will be sent as a GET parameter ","default_branch":null,"files":null,"tree":[],"storefront":"/r/VKCOM","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/VKCOM/vk-php-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}