Download the PHP package programmis/php-vk-api-sdk without Composer
On this page you can find all versions of the php package programmis/php-vk-api-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download programmis/php-vk-api-sdk
More information about programmis/php-vk-api-sdk
Files in programmis/php-vk-api-sdk
Package php-vk-api-sdk
Short Description Lib for Vk Api
License MIT
Homepage https://github.com/programmis/php-vk-api-sdk
Informations about the package php-vk-api-sdk
Supported:
Account, Ads, Apps, Audio, Auth, Board, Database, Docs, Fave, Friends, Gifts, Groups, Leads, Likes, Market, Messages, Newsfeed, Notes, Notifications, Orders, Pages, Photos, Places, Polls, Search, Secure, Stats, Status, Storage, Users, Utils, Video, Wall, Widgets
How to install:
1) Download composer :
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
2) Install SDK:
php composer.phar require programmis/php-vk-api-sdk
3) Get token vkontakte:
http://oauth.vk.com/authorize?client_id=3682744&scope=status,friends,wall,offline,photos,market&redirect_uri=http://oauth.vk.com/blank.html&display=page&response_type=token
in the address bar:
https://oauth.vk.com/blank.html#access_token=345345345345345345345345345d73e7de6acf1475ca460d&expires_in=0&user_id=1
Examples:
Upload photo
Obtain detailed information about users VKontakte:
Join this group or to attend a meeting VKontakte:
Place a record on the wall VKontakte:
Create a new album VKontakte:
Add user VKontakte to friend:
Change the status of the user VKontakte:
Add a comment to the discussion VKontakte:
Set the status of "online" in your account VKontakte:
Send message to VKontakte user:
Create a new poll VKontakte:
Console log example
info(1).........[2016/11/27 17:48:46] -> Set parameter: user_ids as array, values: a:1:{i:0;i:1;} debug(1)........[2016/11/27 17:48:46] -> execApi: https://api.vk.com/method/users.get?v=5.60 debug(2)........[2016/11/27 17:48:46] -> with headers: a:1:{s:12:"Content-type";s:19:"multipart/form-data";} debug(3)........[2016/11/27 17:48:46] -> with parameters: a:1:{s:8:"user_ids";s:1:"1";} debug(4)........[2016/11/27 17:48:46] -> execApi result: {"response":[{"id":1,"first_name":"Павел","last_name":"Дуров"}]}
Connecting your logger
Connecting anti captcha
Set before and after request callback
Get Access Token: http://vk.com/dev/auth_sites
Description of the API methods: http://vk.com/dev/methods
if you find error - please send mail for me
All versions of php-vk-api-sdk with dependencies
symfony/yaml Version 2.*|3.*
programmis/api-rator Version 1.*
programmis/colorful-logger Version 0.*
programmis/auto-fill-object Version 0.*
programmis/anti-captcha Version 0.*