2017 © Pedro Peláez
 

library vk-auth

tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password

image

fonclub/vk-auth

tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 1 Versions
  • 50 % Grown

The README.md

vk-auth

tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password, (*1)

install via composer

composer require fonclub/vk-auth

usage


$agent = new \VkAuth\VkAuthAgent($vkCell, $vkPassword); $remixsid = $agent->getRemixsid(); // makes few http requests to vk.com and returns valid remixsid value // CookieJar object for usage in Guzzle Client, see [guzzle docs](http://docs.guzzlephp.org/en/latest/quickstart.html#cookies) $jar = $agent->getAuthorizedCookieJar();

example

there is an example.php command-line script. It will print friends list of the account. To run it, you need to create a file called test_login_pass_constants.php which contains two required constants (valid vk mobile phone & password), e.g., (*2)

<?php
const TEST_VK_LOGIN = '81234567890';
const TEST_VK_PATH = 'password';

run it, (*3)

php example.php

The Versions

30/06 2018

dev-master

9999999-dev

tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password

  Sources   Download

WTFPL

The Requires

 

authorization vkontakte vk remixsid