Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Powerfull PHP wrapper for VK API (vk.com)
PHP
Branch: master
Failed to load latest commit information.
che Fix issue with uploading photos
examples Improving error handling && moving to 5.2 version
LICENSE Initial commit
README.md readme mini fix
composer.json composer fix

README.md

VK-OAuth

A powerfull PHP library for the VK OAuth API (vk.com social network).

Supports both usual and secure methods. Fully compatible with VK API version 5.0.
Easy to handle exceptions.

VK API documentation

Example

You can find example code for authentication and API calling in examples/ directory.

You need to create application and set proper domain name in application settings.

Then replace {APP_ID} and {SECRET} in example files.

Basically you can use library like that:

$wall = $vk->wall_get(array(
    'count' => 10,
    'filter' => 'owner'
));

If you want to get endless token use the offline scope parameter:
$vk->getAuthenticationUrl($currentUrl, 'wall,offline');

Installation

You can install vk-oauth by using Composer

"require": {
    "chekalskiy/vk-oauth": "dev-master"
}

or by using simple include.

Support

email: ilya@chekalskiy.ru
vk: chekalskiy
twitter: @i_compman

Something went wrong with that request. Please try again.