PHPackages                             fonclub/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. fonclub/vk-auth

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

fonclub/vk-auth
===============

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

018PHP

Since Jun 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fonclub/vk-auth)[ Packagist](https://packagist.org/packages/fonclub/vk-auth)[ RSS](/packages/fonclub-vk-auth/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)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 fonclub/vk-auth
```

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.

```
