Download the PHP package gdpa/kavenegar without Composer
On this page you can find all versions of the php package gdpa/kavenegar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gdpa/kavenegar
More information about gdpa/kavenegar
Files in gdpa/kavenegar
Package kavenegar
Short Description Kavenegar Notifications driver
License MIT
Homepage https://github.com/gdpa/kavenegar
Informations about the package kavenegar
Kavenegar notifications channel for Laravel 5.3+
This package makes it easy to sent Kavenegar Notifications with Laravel 5.3+.
Contents
- Installation
- Setting up the Kavenegar service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Install for laravel 7:
Install for laravel 6:
Install for laravel < 5.8:
Setting up the Kavenegar service
Add your Kavenegar REST API Key to your config/services.php
:
Usage
There are two channels that you can use in your via()
method inside the notification:
KavenegarChannel
which represent simple send
api and KavenegarVerifyChannel
which provide verify lookup
api.
In order to let your Notification know which Kavenegar user you are targeting, add the routeNotificationForKavenegar
method to your Notifiable model.
This method needs to return an array containing the mobile number of your receptor.
Available methods
sender('')
: Accepts a string value for setting sender number on kavenegar.message()
: Accepts a string value for setting your sms message.template()
: Accepts a string value for setting your sms template.type()
: Accepts a string value for setting your service type (sms, voice, ...).tokens()
: Accepts two string value for setting your tokens. Second string is optional and in case you don't provide it, it set your default token.
Changelog
Please see CHANGELOG for more information what has changed recently.
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
- Morteza Poussaneh
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of kavenegar with dependencies
guzzlehttp/guzzle Version ^7.0.1
illuminate/notifications Version ^8.0
illuminate/support Version ^8.0