PHP code example of pendalff / vk-api

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

    

pendalff / vk-api example snippets


use VkApi\Auth;
use VkApi\Api;

$scope = array();
$token_path = __DIR__;

$auth = new Auth($login, $password, $token_path);
$api = new Api($client_id, $scope, $auth);

$result = $api->call('method', array('option1'=>'value1'));