Download the PHP package bahricanli/netgsm without Composer
On this page you can find all versions of the php package bahricanli/netgsm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bahricanli/netgsm
More information about bahricanli/netgsm
Files in bahricanli/netgsm
Package netgsm
Short Description Sends SMS using Netgsm API
License MIT
Homepage https://github.com/bahricanli/netgsm
Informations about the package netgsm
Netgsm Notification Channel For Laravel 5.3
This package makes it easy to send notifications using Netgsm with Laravel 5.3.
Contents
- Installation
- Setting up the Netgsm service
- Usage
- Available methods
- Available events
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install this package via composer:
Next add the service provider to your config/app.php
:
Register the Netgsm alias to your application. This registration is not optional because the channel itself uses this very alias.
Setting up the Netgsm service
Add your desired client, username, password, originator (outbox name, sender name) and request timeout
configuration to your config/services.php
file:
Usage
Now you can use the channel in your via() method inside the notification:
Don't forget to place the dedicated method for Netgsm inside your notifiables. (e.g. User)
Available methods
Netgsm can also be used directly to send short messages.
Examples:
see: Netgsm-php documentation for more information.
Available events
Netgsm Notification channel comes with handy events which provides the required information about the SMS messages.
- Message Was Sent (
NotificationChannels\Netgsm\Events\MessageWasSent
) - Messages Were Sent (
NotificationChannels\Netgsm\Events\MessageWasSent
) - Sending Message (
NotificationChannels\Netgsm\Events\SendingMessage
) - Sending Messages (
NotificationChannels\Netgsm\Events\SendingMessages
)
Example:
Notes
$response->groupId() will throw BadMethodCallException if the client is set to 'http'. $response->messageReportIdentifiers() will throw BadMethodCallException if the client is set to 'xml'.
change client configuration with caution.
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
- Bahri Meriç Canlı
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of netgsm with dependencies
bahricanli/netgsm-php Version dev-master
illuminate/notifications Version 8.*
illuminate/queue Version 8.*
illuminate/support Version 8.*