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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

PHP Build Version
Package Version
Requires php Version >=5.3.0
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.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package programmis/php-vk-api-sdk contains the following files

Loading the files please wait ....