anfa/vk-auth
Composer 安装命令:
composer require anfa/vk-auth
包简介
tiny lib to get vk auth cookie (remixsid) using valid mobile phone number and password
README 文档
README
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
统计信息
- 总下载量: 220
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: WTFPL
- 更新时间: 2016-08-13