Download the PHP package movemoveapp/vkid without Composer

On this page you can find all versions of the php package movemoveapp/vkid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package vkid

VK ID (OAuth 2.1 + PKCE)

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

На Русском

Register an application

Create a new VK ID application at id.vk.ru. Make sure you specify the correct redirect URI (must match exactly with the one in your config).

Installation & Basic Usage

Please see the Base Installation Guide first, then follow the VK ID-specific instructions below.

Add configuration to config/services.php

Add provider event listener

Laravel 11+

Since Laravel 11 removed EventServiceProvider, use the Event facade in your AppServiceProvider@boot:

Laravel 10 or below Add the listener in your `app/Providers/EventServiceProvider.php`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.

Usage

You can now use the driver as usual with Socialite:

For extended scopes (e.g. apps with Business Account permission):

Handling the callback:

Returned User fields

Field Description
id VK user ID
nickname screen_name (if present)
name First + last name
email from id_token (if scope=email)
avatar URL to 200px profile photo
phone from id_token (if scope=phone and granted)

Exception Reference

Exception Cause Recommended handling
Laravel\Socialite\Two\InvalidStateException - state or PKCE verifier missing or expired- user waited longer than pkce_ttl minutes before pressing “Allow” Ask user to restart login. Show message like “Authorization expired. Please try again.”
RuntimeException("VKID PKCE cache failure") Cache store misconfigured or unavailable (e.g., Redis down) Log and retry later. Typically a server-side infra issue.
RuntimeException("VKID PKCE cache failure: unable to persist code_verifier") Misconfigured cache_store or permission issue writing PKCE state Ensure correct cache driver in config/cache.php
Any other exception Networking or unexpected JSON format Generic fallback “VK ID login failed”

All exceptions extend base \Throwable and can be caught globally in your app’s Handler.

Extended Configuration Options

Key Type Default Description
`client_id string VK App ID
`client_secret string VK App secret
`redirect string Full callback URL (must match app settings)
`scopes array ['email'] Default OAuth scopes
`pkce_ttl int 10 Time in minutes to store PKCE verifier
`cache_store string 'redis' Cache store for PKCE (see config/cache.php)
`cache_prefix string 'socialite:vkid:pkce:' Prefix for PKCE keys
`api_version string '5.199' VK API version for users.get

Example .env

Example User Flow Diagram


Reference


All versions of vkid with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
socialiteproviders/manager Version ^4.4
laravel/socialite Version ^5.6 || ^6.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package movemoveapp/vkid contains the following files

Loading the files please wait ...