PHPackages                             mad-tools/vk-api - 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. mad-tools/vk-api

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

mad-tools/vk-api
================

Api with auth provider

1.2.0(11y ago)3222MITPHP

Since Aug 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/MadFaill/vkApi)[ Packagist](https://packagist.org/packages/mad-tools/vk-api)[ RSS](/packages/mad-tools-vk-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Vkontakte API
=============

[](#vkontakte-api)

Имеет на борту авторизацию для получения токена. Полноценно следит за токеном, если используется объект авторизации.

Распространяется по лицензии [MIT](http://opensource.org/licenses/MIT) и предоставляется **AS-IS**.

Как это работает
================

[](#как-это-работает)

Для того чтобы использовать библиотеку, понадобится:

- Создать [Stand-Alone](http://vk.com/editapp?act=create) приложение в самом контакте
- Вставить в переменные логин, пароль от контактика и + ид приложений
- запустить скрипт

Библиотека сама получает token. Для этого и требуется login &amp;&amp; password.

Примеры
=======

[](#примеры)

Примеры использования можно посмотреть в `examples`

```
use VkApi\Auth;
use VkApi\Api;

$scope = array();
$token_path = __DIR__;

$auth = new Auth($login, $password, $token_path);
$api = new Api($client_id, $scope, $auth);

$result = $api->call('method', array('option1'=>'value1'));
```

Установка
=========

[](#установка)

```
{
    "require": {
        "mad-tools/vk-api": "dev-master"
    }
}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 73.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

4

Last Release

4289d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2902608?v=4)[Nikolay](/maintainers/MadFaill)[@MadFaill](https://github.com/MadFaill)

---

Top Contributors

[![MadFaill](https://avatars.githubusercontent.com/u/2902608?v=4)](https://github.com/MadFaill "MadFaill (11 commits)")[![akmetainfo](https://avatars.githubusercontent.com/u/6085279?v=4)](https://github.com/akmetainfo "akmetainfo (4 commits)")

### Embed Badge

![Health badge](/badges/mad-tools-vk-api/health.svg)

```
[![Health](https://phpackages.com/badges/mad-tools-vk-api/health.svg)](https://phpackages.com/packages/mad-tools-vk-api)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
