Download the PHP package meshgroup/megafon-notification-channel without Composer
On this page you can find all versions of the php package meshgroup/megafon-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package megafon-notification-channel
Megafon notifications channel for Laravel 5.3+
This package makes it easy to send notifications using megafon with Laravel 5.3+.
Contents
- Installation
- Setting up the Megafon service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Then you must install the service provider:
Setting up the Megafon service
Add your Megafon login, password and default sender name (or phone number) to your config/services.php
:
If you want use other host than
https://a2p-api.megalabs.ru/
, you MUST set custom host WITH trailing slash.
Usage
You can use the channel in your via()
method inside the notification:
In your notifiable model, make sure to include a routeNotificationForMegafon()
method, which returns a phone number
or an array of phone numbers.
Available methods
from()
: Sets the sender's name or phone number.
content()
: Set a content of the notification message.
sendAt()
: Set a time for scheduling the notification message.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
All versions of megafon-notification-channel with dependencies
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.4.5
illuminate/queue Version 5.1 - 8.9
illuminate/notifications Version 5.1 - 8.9
illuminate/support Version 5.1 - 8.9