PHPackages                             johndoejdg/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. johndoejdg/vkontakte-php-sdk

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

johndoejdg/vkontakte-php-sdk
============================

Vkontakte PHP SDK

v2.0.4(9y ago)046MITPHPPHP &gt;=5.3.0

Since Jan 24Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (8)Used By (0)

vkontakte-php-sdk
=================

[](#vkontakte-php-sdk)

Simple Vkontakte PHP SDK

Install
-------

[](#install)

Install library with `composer` dependency manager

- Add `"bocharsky-bw/vkontakte-php-sdk": "dev-master"` into the `require` section of your `composer.json` file
- Run `$ composer.phar install`

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

```
