chekalskiy / vk-oauth
VK-OAuth is a powerfull PHP library for the VK OAuth API.
Installs: 13 488
Dependents: 0
Suggesters: 0
Security: 0
Stars: 40
Watchers: 8
Forks: 13
Open Issues: 1
Requires
- php: >=5.3.3
- ext-curl: *
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.
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