dev-master
9999999-devtiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password
WTFPL
The Requires
- guzzlehttp/guzzle ^6.2
- php >=5.3.3
by anfa
authorization vkontakte vk remixsid
tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password
tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password, (*1)
composer require fonclub/vk-auth
$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();
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
tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password
WTFPL
authorization vkontakte vk remixsid