SocialConnect / vk

Licence: other
ВКонтакте Social Network SDK

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to vk

vk-api
VK SDK | VKontakte wrapper for standalone apps
Stars: ✭ 30 (+66.67%)
Mutual labels:  vk, vkontakte, vkontakte-sdk, vkontakte-api
py-vkontakte
A Python wrapper around the vk.com
Stars: ✭ 17 (-5.56%)
Mutual labels:  vk, vkontakte, vkontakte-api, vkontakte-client
VKAudioPlayer
VK Audio Player on Delphi
Stars: ✭ 16 (-11.11%)
Mutual labels:  vk, vkontakte, vkontakte-api
vkListr
Скачивание списка Участников сообщества ВКонтакте
Stars: ✭ 14 (-22.22%)
Mutual labels:  vk, vkontakte, vkontakte-api
VK-Scraper
Scrapes VK user's photos
Stars: ✭ 42 (+133.33%)
Mutual labels:  vk, vkontakte, vkontakte-api
vbio
Python модуль для написания скриптов, использующих Bots API для социальной сети Вконтакте (vk.com)
Stars: ✭ 10 (-44.44%)
Mutual labels:  vk, vkontakte, vkontakte-api
Vk To Telegram Bot
Bot for auto-reposting posts from VK to Telegram channel
Stars: ✭ 103 (+472.22%)
Mutual labels:  vk, vkontakte
Vk4xmpp
Jabber-транспорт для ВКонтакте (A jabber gateway to the VK social network)
Stars: ✭ 114 (+533.33%)
Mutual labels:  vk, vkontakte
Vk Requests
vk.com requests for humans. API library for vk.com
Stars: ✭ 162 (+800%)
Mutual labels:  vk, vkontakte
Sketal
Бот для ВКонтакте. Беседы / группы / развлечения.
Stars: ✭ 119 (+561.11%)
Mutual labels:  vk, vkontakte
Assent
Multi-provider framework in Elixir
Stars: ✭ 126 (+600%)
Mutual labels:  vk, vkontakte
VideoforVk
Video for Vk (or VT) is client for Vk video API.
Stars: ✭ 27 (+50%)
Mutual labels:  vk, vkontakte
Node Vk Bot Api
🤖 VK bot framework for Node.js, based on Bots Long Poll API and Callback API.
Stars: ✭ 195 (+983.33%)
Mutual labels:  vk, vkontakte
Vkbot
Простой разговорный бот на PHP
Stars: ✭ 88 (+388.89%)
Mutual labels:  vk, vkontakte
dynamic-photo-vk
Смена изображений на фото ВКонтакте 20 раз в день
Stars: ✭ 19 (+5.56%)
Mutual labels:  vk, vkontakte
Vk Audio Token
Library that obtains VK tokens that work for VK audio API. Библиотека для получения токена VK, подходящего для Audio API.
Stars: ✭ 81 (+350%)
Mutual labels:  vk, vkontakte
Vkrss
Generates RSS feed of opened/closed vk.com wall or global searched opened posts. Features: post filtering (include/exclude by regexp and/or by owner type), ads skipping, automatic title generation, hash-tags extraction as RSS categories, initial author extraction, HTML formatting
Stars: ✭ 59 (+227.78%)
Mutual labels:  vk, vkontakte
Vk Api Schema
JSON Schema of VK API
Stars: ✭ 158 (+777.78%)
Mutual labels:  vk, vkontakte
Passport Vkontakte
VK.com authentication strategy for Passport and Node.js
Stars: ✭ 149 (+727.78%)
Mutual labels:  vk, vkontakte
Swiftyvk
Easy and powerful way to interact with VK API for iOS and macOS
Stars: ✭ 247 (+1272.22%)
Mutual labels:  vk, vkontakte

ВКонтакте SDK

Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage License

Library for work with VK API.

Installation

Add a requirement to your composer.json:

{
    "require": {
        "socialconnect/vk": "~0.4"
    }
}

Run the composer installer:

php composer.phar install

How to use

First you need to create service:

// Your Vk Application Settings
$appId = 123456;
$appSecret = 'secret';

$vkService = new \SocialConnect\Vk\Client($appId, $appSecret);
$vkService->setHttpClient(new \SocialConnect\Common\Http\Client\Curl());

Get user with specified $id:

$user = $vkService->getUser(1);
var_dump($user);

Get users with specified array $ids:

$users = $vkService->getUsers([1, 2]);
var_dump($users);

Customs methods

$parameters = [];
$result = $vkService->request('method/CustomMethod', $parameters);
if ($result) {
    var_dump($result);
}

Custom entities

class MyUserEntitiy extends \SocialConnect\Vk\Entity\User {
    public function myOwnMethod()
    {
        //do something
    }
}

$vkService->getEntityUser(new MyUserEntitiy());
$user = $vkService->getUser(1);

if ($user) {
    $user->myOwnMethod();
}

License

This project is open-sourced software licensed under the MIT License. See the LICENSE file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].