Download the PHP package vladkens/vk without Composer

On this page you can find all versions of the php package vladkens/vk. 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 vk

VK

По-русски

Класс реализует VK API и авторизацию по OAuth протоколу. По всем вопросам можно писать на [email protected]

Использование

  1. Подключите класс

    require('VK.php');
  2. Создайте объект VK

    1. без авторизации

      $vk = new VK\VK('{APP_ID}', '{API_SECRET}');
    2. с авторизацией

      $vk = new VK\VK('{APP_ID}', '{API_SECRET}', '{ACCESS_TOKEN}');
  3. Если нужна авторизация

    1. Получаем ссылку авторизации

      $vk->getAuthorizeURL('{API_SETTINGS}', '{CALLBACK_URL}');
    2. Получаем токен доступа по ключу из ссылки авторизации

      $vk->getAccessToken('{CODE}');
    3. Проверить авторизирован ли пользователь

      $vk->isAuth(); // return bool
  4. Используем API

    $vk->api('{METHOD_NAME}', '{PARAMETERS}');

Другие методы

Переменные

* Если нужно получить бесконечный токен, используете параметр offline в {API_SETTINGS}.

Лицензия

MIT

English

The PHP class for vk.com API and to support OAuth. You can ask me any questions by e-mail: [email protected]

Use

  1. Connect class

    require('VK.php');
  2. Create VK object

    1. without authorization

      $vk = new VK\VK('{APP_ID}', '{API_SECRET}');
    2. with authorization

      $vk = new VK\VK('{APP_ID}', '{API_SECRET}', '{ACCESS_TOKEN}');
  3. If need authorization

    1. Get authoriz link

      $vk->getAuthorizeURL('{API_SETTINGS}', '{CALLBACK_URL}');
    2. Get the token access by code from the authoriz link

      $vk->getAccessToken('{CODE}');
    3. Check the status of authorization

      $vk->isAuth(); // return bool
  4. Usage API

    $vk->api('{METHOD_NAME}', '{PARAMETERS}');

Other methods

Variables

* If you need infinite token use key offline in {API_SETTINGS}.

License

MIT


All versions of vk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 vladkens/vk contains the following files

Loading the files please wait ....