{"id":15134239,"url":"https://github.com/a2nt/vkconnect","last_synced_at":"2026-01-20T02:14:37.218Z","repository":{"id":56938886,"uuid":"100406845","full_name":"a2nt/vkconnect","owner":"a2nt","description":"Connect SilverStripe to VK.com","archived":false,"fork":false,"pushed_at":"2017-08-15T18:30:54.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-19T05:36:49.590Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a2nt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-15T18:26:12.000Z","updated_at":"2017-08-15T18:28:45.000Z","dependencies_parsed_at":"2022-08-21T01:40:21.358Z","dependency_job_id":null,"html_url":"https://github.com/a2nt/vkconnect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2nt%2Fvkconnect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2nt%2Fvkconnect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2nt%2Fvkconnect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2nt%2Fvkconnect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a2nt","download_url":"https://codeload.github.com/a2nt/vkconnect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411194,"owners_count":20934650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-26T05:03:59.658Z","updated_at":"2026-01-20T02:14:37.193Z","avatar_url":"https://github.com/a2nt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vk Connect Integration Module\n\n## Maintainer Contact\n * Anton Fedianin\n   \u003ctony (at) twma (dot) pro\u003e\n   \u003chttps://twma.pro\u003e\n\n## Requirements\n * SilverStripe 3.2\n\n## Overview\n\nThe module provides a **basic** interface for implementing the Vk PHP SDK\non your SilverStripe website. The Vk SDK allows users to login to your\nwebsite using their Vk account details, creating a single sign-on within\nthe existing SilverStripe member system.\n\n### What it provides\n\n* Loads the VK PHP SDK.\n\n* Provides $VkLoginLink template variable to generate a link to login to\nVK.com Upon clicking the link and being redirected back to your application\nthe SilverStripe `Member::currentUser()` will be populated with a `Member`\ninstance linked to the users VK profile.\n\n```\n\u003c% with CurrentMember %\u003e\n\t$Name $Avatar(small)\n\u003c% end_with %\u003e\n```\n\n## Installation\n\n```\ncomposer require \"a2nt/silverstripe-vkconnect\" \"dev-master\"\n```\n\n[Register your website / application](https://vk.com/dev) with VK.\n\nSet your configuration through the SilverStripe Config API. For example I keep\nmy configuration in `mysite/_config/vkconnect.yml` file:\n\n```\nVkControllerExtension:\n  app_id: 'MyAppID'\n  api_secret: 'Secret'\n```\n\nUpdate the database by running `/dev/build` to add the additional fields to\nthe `Member` table and make sure you `?flush=1` when you reload your website.\n\n```\n\u003ca href=\"$VkLoginLink\"\u003eLogin via Vk\u003c/a\u003e\n```\n\nYou can also access the Vk PHP SDK in your PHP code..\n\n```php\n// https://developers.Vk.com/docs/php/VkSession/4.0.0\n$session = Controller::curr()-\u003egetVkSession();\n```\n\nFor more information about what you can do through the SDK see:\n\nhttps://vk.com/dev/manuals\n\n### Options\n\nAll the following values are set either via the Config API like follows\n\n  Config::inst()-\u003eupdate('VkControllerExtension', '$option', '$value')\n\nOr (more recommended) through the YAML API\n\n  VkControllerExtension:\n    option: value\n\n### app_id\n\nYour app id. Found on the Vk Developer Page.\n\n### api_secret\n\nVk API secret. Again, from your Application page.\n\n### create_member\n\n  Optional, default: true\n\nWhether or not to create a `Member` record in the database with the users\ninformation. If you disable this, ensure your code uses $CurrentVkMember\nrather than $Member. Other access functionality (such as admin access) will not\nwork.\n\n### member_groups\n\n  Optional, default ''\n\nA list of group codes to add the user. For instance if you want every member who\njoins through Vk to be added to a group `Vk Members` set the\nfollowing:\n\n  VkControllerExtension:\n    member_groups:\n      - Vk_members\n\n### permissions\n\n  Optional, default 'email'\n\nA list of permission codes you want from the user. Permission codes are listed\non [developers.Vk.com](https://developers.Vk.com/docs/reference/login).\n\nEnsure you include email in your list if you require `create_member`.\n\n### Vk_fields\n\n  Default 'email','first_name','last_name'\n\nA list of fields you want to retrieve from Vk for the user. Available fields are listed\non [developers.Vk.com](https://developers.Vk.com/docs/graph-api/reference/user).\n\nEnsure you include email in your list if you require `create_member`.\n\n### sync_member_details\n\n  Optional, default true\n\nFlag as to whether to replace user information (such as name) in your database\nwith the values from Vk.\n\n## License\n\nReleased under the BSD-3-Clause License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2nt%2Fvkconnect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa2nt%2Fvkconnect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2nt%2Fvkconnect/lists"}