PHPackages                             a2nt/silverstripe-vkconnect - 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. a2nt/silverstripe-vkconnect

ActiveSilverstripe-module

a2nt/silverstripe-vkconnect
===========================

Integration of VK Connect into SilverStripe

09PHPCI failing

Since Aug 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/a2nt/vkconnect)[ Packagist](https://packagist.org/packages/a2nt/silverstripe-vkconnect)[ RSS](/packages/a2nt-silverstripe-vkconnect/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Vk Connect Integration Module
=============================

[](#vk-connect-integration-module)

Maintainer Contact
------------------

[](#maintainer-contact)

- Anton Fedianin &lt;tony (at) twma (dot) pro&gt;

Requirements
------------

[](#requirements)

- SilverStripe 3.2

Overview
--------

[](#overview)

The module provides a **basic** interface for implementing the Vk PHP SDK on your SilverStripe website. The Vk SDK allows users to login to your website using their Vk account details, creating a single sign-on within the existing SilverStripe member system.

### What it provides

[](#what-it-provides)

- Loads the VK PHP SDK.
- Provides $VkLoginLink template variable to generate a link to login to VK.com Upon clicking the link and being redirected back to your application the SilverStripe `Member::currentUser()` will be populated with a `Member`instance linked to the users VK profile.

```

	$Name $Avatar(small)

```

Installation
------------

[](#installation)

```
composer require "a2nt/silverstripe-vkconnect" "dev-master"

```

[Register your website / application](https://vk.com/dev) with VK.

Set your configuration through the SilverStripe Config API. For example I keep my configuration in `mysite/_config/vkconnect.yml` file:

```
VkControllerExtension:
  app_id: 'MyAppID'
  api_secret: 'Secret'

```

Update the database by running `/dev/build` to add the additional fields to the `Member` table and make sure you `?flush=1` when you reload your website.

```
Login via Vk

```

You can also access the Vk PHP SDK in your PHP code..

```
// https://developers.Vk.com/docs/php/VkSession/4.0.0
$session = Controller::curr()->getVkSession();
```

For more information about what you can do through the SDK see:

### Options

[](#options)

All the following values are set either via the Config API like follows

Config::inst()-&gt;update('VkControllerExtension', '$option', '$value')

Or (more recommended) through the YAML API

VkControllerExtension: option: value

### app\_id

[](#app_id)

Your app id. Found on the Vk Developer Page.

### api\_secret

[](#api_secret)

Vk API secret. Again, from your Application page.

### create\_member

[](#create_member)

Optional, default: true

Whether or not to create a `Member` record in the database with the users information. If you disable this, ensure your code uses $CurrentVkMember rather than $Member. Other access functionality (such as admin access) will not work.

### member\_groups

[](#member_groups)

Optional, default ''

A list of group codes to add the user. For instance if you want every member who joins through Vk to be added to a group `Vk Members` set the following:

VkControllerExtension: member\_groups: - Vk\_members

### permissions

[](#permissions)

Optional, default 'email'

A list of permission codes you want from the user. Permission codes are listed on [developers.Vk.com](https://developers.Vk.com/docs/reference/login).

Ensure you include email in your list if you require `create_member`.

### Vk\_fields

[](#vk_fields)

Default 'email','first\_name','last\_name'

A list of fields you want to retrieve from Vk for the user. Available fields are listed on [developers.Vk.com](https://developers.Vk.com/docs/graph-api/reference/user).

Ensure you include email in your list if you require `create_member`.

### sync\_member\_details

[](#sync_member_details)

Optional, default true

Flag as to whether to replace user information (such as name) in your database with the values from Vk.

License
-------

[](#license)

Released under the BSD-3-Clause License.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c10d444da3afa00b1851c2595f47190836de733c6f49855d2a751b1e613f78d?d=identicon)[a2nt](/maintainers/a2nt)

---

Top Contributors

[![a2nt](https://avatars.githubusercontent.com/u/672794?v=4)](https://github.com/a2nt "a2nt (1 commits)")

### Embed Badge

![Health badge](/badges/a2nt-silverstripe-vkconnect/health.svg)

```
[![Health](https://phpackages.com/badges/a2nt-silverstripe-vkconnect/health.svg)](https://phpackages.com/packages/a2nt-silverstripe-vkconnect)
```

PHPackages © 2026

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