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-12-10 14:51:38 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: