Download the PHP package clevel/netgsm-notification-channel without Composer
On this page you can find all versions of the php package clevel/netgsm-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download clevel/netgsm-notification-channel
More information about clevel/netgsm-notification-channel
Files in clevel/netgsm-notification-channel
Package netgsm-notification-channel
Short Description NetGSM Provider for Laravel Notification Channels
License MIT
Homepage https://github.com/laravel-notification-channels/netgsm
Informations about the package netgsm-notification-channel
Laravel Notification Channels - Netgsm SMS Gateway Package
This package makes it easy to send notifications using Netgsm with Laravel 5.5+, 6.x and 7.x
Contents
- Installation
- Setting up the Netgsm service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
This package can be installed via composer:
Setting up the NetGSM service
-
Create an account and get the API key here
- Add credentials to
.envfile:
Usage
You can use this channel by adding NetgsmChannel::class to the array in the via() method of your notification class. You need to add the toNetgsm() method which should return a NetgsmMessage() object.
You will have to set a routeNotificationForNetgsm() method in your notifiable model. For example:
Available Message methods
getPayloadValue($key): Returns payload value for a given key.content(string $message): Sets SMS message text.to(string $number): Set recipients number.from(string $from): Set senders name.getMessage(): Get Message body from NetgsmMessage Object.
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
- Burak Sormageç
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of netgsm-notification-channel with dependencies
guzzlehttp/guzzle Version ^7.0.1
illuminate/notifications Version ~5.5 || ~6.0 || ~7.0 || ~8.0
illuminate/support Version ~5.5 || ~6.0 || ~7.0 || ~8.0