PHPackages                             bocharsky-bw/vkontakte-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. bocharsky-bw/vkontakte-php-sdk

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

bocharsky-bw/vkontakte-php-sdk
==============================

Vkontakte PHP SDK

v2.0.4(9y ago)3259.2k↓33.3%36[1 issues](https://github.com/bocharsky-bw/vkontakte-php-sdk/issues)1MITPHPPHP &gt;=5.3.0

Since Jan 24Pushed 9y ago8 watchersCompare

[ Source](https://github.com/bocharsky-bw/vkontakte-php-sdk)[ Packagist](https://packagist.org/packages/bocharsky-bw/vkontakte-php-sdk)[ Docs](https://github.com/bocharsky-bw/vkontakte-php-sdk)[ RSS](/packages/bocharsky-bw-vkontakte-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (1)

VKontakte PHP SDK
=================

[](#vkontakte-php-sdk)

A simple and lightweight PHP SDK library for VKontakte social network.

Install
-------

[](#install)

Install library with Composer dependency manager:

```
$ composer require bocharsky-bw/vkontakte-php-sdk
```

Include
-------

[](#include)

Require `composer` autoloader in your index file:

```
require __DIR__ . '/path/to/vendor/autoload.php';
```

Create instance of `Vkontakte` class with your own configuration parameters:

```
use \BW\Vkontakte as Vk;

$vk = new Vk([
    'client_id' => 'APP_ID',
    'client_secret' => 'APP_SECRET',
    'redirect_uri' => 'REDIRECT_URI',
]);
```

OAuth authorization
-------------------

[](#oauth-authorization)

Build authorization link in your template:

```
