Download the PHP package bitfumes/karix-notification-channel without Composer
On this page you can find all versions of the php package bitfumes/karix-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bitfumes/karix-notification-channel
More information about bitfumes/karix-notification-channel
Files in bitfumes/karix-notification-channel
Package karix-notification-channel
Short Description Allow you to use karix sms as custom channel in laravel notifications
License MIT
Informations about the package karix-notification-channel
Karix Sms notifications channel for Laravel 5.4+
This package makes it easy to send sms via Karix.io with Laravel 5.4+.
Installation
You can install the package via composer:
Setting up the Karix id and token
Login to Karix.io and get your ID and Token, put that on your .env file and
add your Karix Id and Token to your config/services.php
:
Usage
Now you can use the channel in your via()
method inside the notification:
In order to let your Notification know that there is a new channel called KarixSmsChannel, add the routeNotificationForKarix
method to your Notifiable model (probably your user.php file).
This method needs to return email of the user (if it's a private board) and the list ID of the Trello list to add the card to.
Caveat : Make sure you have a 'phone' field in your table along with country code like +91xxxxxxxxxx for which you are using this.
Available methods
version('')
: Accepts a string value for the Karix api version.timezone('')
: Accepts a string value for the TimeZone if you want to set for sms.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Sarthak Shrivastava
- All Contributors
License
The MIT License (MIT). Please see License File for more information.