Download the PHP package ramanandapanda/jsksms without Composer
On this page you can find all versions of the php package ramanandapanda/jsksms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ramanandapanda/jsksms
More information about ramanandapanda/jsksms
Files in ramanandapanda/jsksms
Informations about the package jsksms
jsksms Notifications Channel for Laravel
This package makes it easy to send notifications using jsksms with Laravel 5.5+, 6.x, 7.x and 8.x
Contents
- Installation
- Setting up the jsksms
- Usage
- Available Message methods
- On-Demand Notifications
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install this package via composer:
Setting up the jsksms service
Add your jsksms token, default sender name (or phone number) to your config/services.php:
Usage
You can use the channel in your via() method inside the notification:
In your notifiable model, make sure to include a routeNotificationForjsksms() method, which returns a phone number or an array of phone numbers.
On-Demand Notifications
Sometimes you may need to send a notification to someone who is not stored as a "user" of your application. Using the Notification::route method, you may specify ad-hoc notification routing information before sending the notification:
Available Message methods
sender()
: Sets the sender's name. Make sure to register the sender name at you jsksms dashboard.
content()
: Set a content of the notification message. This parameter should be no longer than 918 char(6 message parts),
test()
: Send a test message to specific mobile number or not. This parameter should be boolean and default value is true
.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please use the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Tint Naing Win
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of jsksms with dependencies
guzzlehttp/guzzle Version ^6.4 || ^7.0
illuminate/support Version 5.5 - 5.8 || ~6.0 || ~7.0 || ~8.0