Download the PHP package laravel-lib/onewaysms without Composer
On this page you can find all versions of the php package laravel-lib/onewaysms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-lib/onewaysms
More information about laravel-lib/onewaysms
Files in laravel-lib/onewaysms
Package onewaysms
Short Description OneWaySMS Notifications channel for Laravel
License MIT
Homepage https://github.com/laravel-lib/onewaysms
Informations about the package onewaysms
OneWaySMS Notifications Channel for Laravel
📲 This package makes it easy to send notifications (SMS) using OneWaySMS with Laravel 6.x, 7.x, 8.x and 9.x
Contents
- Installation
- Setting up the OneWaySMS
- Usage
- Available Message methods
- On-Demand Notifications
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install this package via composer:
Setting up the OneWaySMS service
Add your OneWaySMS API account and settings 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 routeNotificationForOnewaysms() 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
to()
: Sets the recipient's mobile no.
from()
: Sets the sender id.
content()
: Set a content of the notification message. This parameter should be no longer than 459 chars (3 message parts),
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
- Zulkifli Mohamed
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of onewaysms with dependencies
php Version ^7.4 || ^8.0
illuminate/notifications Version 6 - 9
illuminate/support Version 6 - 9