Download the PHP package laravel-notification-channels/smspoh without Composer
On this page you can find all versions of the php package laravel-notification-channels/smspoh. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-notification-channels/smspoh
More information about laravel-notification-channels/smspoh
Files in laravel-notification-channels/smspoh
Package smspoh
Short Description Smspoh Notifications channel for Laravel 9.x and 10.x.
License MIT
Homepage https://github.com/laravel-notification-channels/smspoh
Informations about the package smspoh
Smspoh Notifications Channel for Laravel
This package makes it easy to send notifications using SmsPoh with Laravel and 9.x and 10.x.
Contents
- Installation
- Setting up the smspoh
- Usage
- Available Message methods
- On-Demand Notifications
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install this package via composer:
Setting up the Smspoh service
Add your Smspoh 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 routeNotificationForSmspoh() 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 SmsPoh 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
.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Tint Naing Win
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of smspoh with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.0
illuminate/notifications Version ^9.0|^10.0|^11.0
illuminate/support Version ^9.0|^10.0|^11.0