PHPackages                             enniel/laravel-vk-notification-channel - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. enniel/laravel-vk-notification-channel

AbandonedArchivedLibrary[Mail &amp; Notifications](/categories/mail)

enniel/laravel-vk-notification-channel
======================================

VK Notification Driver

v0.0.2(9y ago)11.7k3[1 issues](https://github.com/enniel/laravel-vk-notification-channel/issues)MITPHPPHP &gt;=5.5.9

Since Oct 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/enniel/laravel-vk-notification-channel)[ Packagist](https://packagist.org/packages/enniel/laravel-vk-notification-channel)[ Docs](https://github.com/enniel/laravel-vk-notification-channel)[ RSS](/packages/enniel-laravel-vk-notification-channel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Vkontakte notification channel for Laravel 5.3
==============================================

[](#vkontakte-notification-channel-for-laravel-53)

This package makes it easy to send notifications using [vk.com](https://vk.com/) with Laravel 5.3.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Testing](#testing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install this package via composer:

```
composer require enniel/laravel-vk-notification-channel
```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use NotificationChannels\Vk\VkChannel;
use NotificationChannels\Vk\VkMessage;
use Illuminate\Notifications\Notification;

class ExampleNotification extends Notification
{
    public function via($notifiable)
    {
        return [VkChannel::class];
    }

    public function toVkontakte($notifiable)
    {
        return (new VkMessage())
            ->message('message text')
            ->token('some_token');
    }
}
```

In order for your notice to know who to send messages, you must add `routeNotificationForVkontakte` method to your notification model that returns data in array like \['user\_id', 1\].

### Available message methods

[](#available-message-methods)

- `user()`: User ID (by default — current user). Takes a parameter `user_id`.
- `random()`: Unique identifier to avoid resending the message. Takes a parameter `random_id`.
- `peer()`: Destination ID. Takes a parameter `peer_id`.
- `domain()`: User's short address (for example, `illarionov`). Takes a parameter `domain_id`.
- `chat()`: ID of conversation the message will relate to. Takes a parameter `chat_id`.
- `users()`: IDs of message recipients (if new conversation shall be started). Takes a parameter `user_ids`.
- `message()`: The identity of the sender. Takes a parameter `message`.
- `lat()`: Geographical latitude of a check-in, in degrees (from -90 to 90). Takes a parameter `lat`.
- `long()`: Geographical longitude of a check-in, in degrees (from -180 to 180). Takes a parameter `long`.
- `attachment()`: List of objects attached to the message. Takes a parameter `attachment`.
- `forwarded()`: IDs of forwarded messages. Takes a parameter `forward_messages`.
- `sticker()`: Sticker id. Takes a parameter `sticker_id`.
- `notification()`: `1` or `true` if the message is a notification (for community messages). Takes a parameter `notification`.
- `token()`: Access token. Passes a parameter `access_token`. For more information see [Authorization](https://github.com/atehnix/vk-client#authorization) and [Getting a Token](https://vk.com/dev/access_token).
- `to()`: Recipient. Takes an array like \['user\_id', 1\], where the first value corresponds to one of them: peer\_id, user\_id, domain, chat\_id or user\_ids.

For more information about parameters see [messages.send](https://vk.com/dev/messages.send).

Testing
-------

[](#testing)

```
$ composer test
```

Credits
-------

[](#credits)

- [Evgeni Razumov](https://github.com/enniel)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~4 days

Total

2

Last Release

3486d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4205ff91a30f69f387f3f31465b7ff65f389839fc2f3215cd0b1bd9ba1727a0c?d=identicon)[enniel](/maintainers/enniel)

---

Top Contributors

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

---

Tags

laravelnotificationvkvkontaktenotificationvkvk.comvkontaktevkontakte.ru

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/enniel-laravel-vk-notification-channel/health.svg)

```
[![Health](https://phpackages.com/badges/enniel-laravel-vk-notification-channel/health.svg)](https://phpackages.com/packages/enniel-laravel-vk-notification-channel)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[edujugon/push-notification

Laravel Package to send push notifications to Android and IOS devices. (GCM,FCM,APN)

4891.4M1](/packages/edujugon-push-notification)[brian2694/laravel-toastr

toastr.js for Laravel

136649.4k5](/packages/brian2694-laravel-toastr)

PHPackages © 2026

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