PHPackages                             anfa/vk-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. anfa/vk-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

anfa/vk-auth
============

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

1.0.2(5y ago)172198[3 issues](https://github.com/biganfa/vk-auth/issues)WTFPLPHPPHP ^5.3.3|^7.0

Since Aug 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/biganfa/vk-auth)[ Packagist](https://packagist.org/packages/anfa/vk-auth)[ RSS](/packages/anfa-vk-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

vk-auth
=======

[](#vk-auth)

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

install via composer
====================

[](#install-via-composer)

```
composer require anfa/vk-auth:^1.0
```

usage
=====

[](#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
=======

[](#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 &amp; password), e.g.

```
