PHP code example of rollylni / vklib

1. Go to this page and download the library: Download rollylni/vklib 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/ */

    

rollylni / vklib example snippets




$client = new \VkLib\VkClient("ClientName", 5.126, "en");
$client->setToken("AccessToken");

$api = new \VkLib\VkApi($client);
var_dump($api->users->get()->json());
$client->remove();