Skip to content

ivastly/vk-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vk-auth

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

install via composer

composer require anfa/vk-auth:^1.0

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.

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

run it

php example.php

About

tiny lib to get vk auth cookie (remixsid) using valid moblie and password

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages