mrsuh/vk-api

API auth for social network vkontakte

v1.4.2 2019-09-14 04:53 UTC

This package is auto-updated.

Last update: 2024-10-10 14:32:34 UTC


README

Installation

First you must create your application at vk.com's [applications page] (https://vk.com/apps?act=manage)

composer require mrsuh/vk-api

Usage

<?php
$params = [
     'app_id'   =>  0,
     'username' => 'username',
     'password' => 'password',
     'scope'    => ['video', 'friends', 'messages']// list of permissions
];

$auth = new Mrsuh\Service\AuthService($params);
$token = $auth->getToken();

//make requests with token

helpful links: