vkontakte maintained by socialiteproviders
Description
VKontakte OAuth2 Provider for Laravel Socialite
Author
Last update
2026/02/21 13:45
(dev-master)
License
Downloads
1 015 464
Last update
2025/09/09 00:08
License
Require
- php ^8.0
- ext-json *
- socialiteproviders/manager ^4.4
Last update
2022/07/18 10:42
License
Require
- php ^7.4 || ^8.0
- ext-json *
- socialiteproviders/manager ~4.0
Last update
2021/09/02 01:20
License
Require
- php ^7.2 || ^8.0
- ext-json *
- socialiteproviders/manager ~4.0
Last update
2020/12/02 00:10
License
Require
- php ^7.2 || ^8.0
- ext-json *
- socialiteproviders/manager ~4.0
Last update
2020/10/25 23:31
License
Require
- php ^7.2
- ext-json *
- socialiteproviders/manager ~4.0
Last update
2019/12/08 15:15
License
Require
- php ^5.6 || ^7.0
- ext-json *
- socialiteproviders/manager ~2.0 || ~3.0
Last update
2018/05/29 19:05
License
Require
- php ^5.6 || ^7.0
- socialiteproviders/manager ~2.0 || ~3.0
Last update
2018/03/02 06:25
License
Require
- php ^5.6 || ^7.0
- socialiteproviders/manager ~2.0 || ~3.0
Last update
2018/02/06 17:53
License
Require
- php ^5.6 || ^7.0
- socialiteproviders/manager ~2.0 || ~3.0
Last update
2017/12/08 15:30
License
Require
- php ^5.6 || ^7.0
- socialiteproviders/manager ~2.0 || ~3.0
Last update
2017/09/26 06:04
License
Require
- php ^5.6 || ^7.0
- socialiteproviders/manager ~2.0 || ~3.0
VKontakte
composer require socialiteproviders/vkontakte
Register an application
Add new application at vk.ru.
Installation & Basic Usage
Please see the Base Installation Guide, then follow the provider specific instructions below.
Add configuration to config/services.php
'vkontakte' => [
'client_id' => env('VKONTAKTE_CLIENT_ID'),
'client_secret' => env('VKONTAKTE_CLIENT_SECRET'),
'redirect' => env('VKONTAKTE_REDIRECT_URI')
],
Add provider event listener
Laravel 11+
In Laravel 11, the default EventServiceProvider provider was removed. Instead, add the listener using the listen method on the Event facade, in your AppServiceProvider boot method.
- Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('vkontakte', \SocialiteProviders\VKontakte\Provider::class);
});
Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// ... other providers
\SocialiteProviders\VKontakte\VKontakteExtendSocialite::class.'@handle',
],
];
Usage
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::driver('vkontakte')->redirect();
Returned User fields
idnicknamenameemailavatar