chekalskiy/vk-oauth

This package is abandoned and no longer maintained. No replacement package was suggested.

VK-OAuth is a powerfull PHP library for the VK OAuth API.

dev-master 2015-02-24 07:42 UTC

This package is auto-updated.

Last update: 2020-01-19 02:17:18 UTC


README

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