Download the PHP package superloop-ltd/laravel-sms-clicksend without Composer
On this page you can find all versions of the php package superloop-ltd/laravel-sms-clicksend. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download superloop-ltd/laravel-sms-clicksend
More information about superloop-ltd/laravel-sms-clicksend
Files in superloop-ltd/laravel-sms-clicksend
Package laravel-sms-clicksend
Short Description ClickSend Notifications channel for Laravel 5.1+
License MIT
Homepage https://github.com/superloop-ltd/laravel-sms-clicksend
Informations about the package laravel-sms-clicksend
ClickSend notifications channel for Laravel 5.1+
This package makes it easy to send notifications using clicksend.com with Laravel 5.1+. Uses ClickSend PHP API wrapper [https://github.com/ClickSend/clicksend-php]
Contents
- Installation
- Usage
- Events
- Api Client
- Changelog
- Testing
- Contributing
- Credits
- License
Installation
Install the package via composer:
Add the service provider to config/app.php
:
Add your ClickSend username, api_key and optional default sender sms_from to your config/services.php
:
Usage
Use ClickSendChannel in via()
method inside your notification classes. Example:
In notifiable model (User), include method routeNotificationForClickSend()
that returns recipient mobile number:
From controller then send notification standard way:
Events
Following events are triggered by Notification. By default:
- Illuminate\Notifications\Events\NotificationSending
- Illuminate\Notifications\Events\NotificationSent
and this channel triggers one when submission fails for any reason:
- Illuminate\Notifications\Events\NotificationFailed
To listen to those events create listener classes in app/Listeners
folder e.g. to log failed SMS:
Then register listeners in app/Providers/EventServiceProvider.php
API Client
To access the rest of ClickSend API you can get client from ClickSendApi:
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Incomplete
Contributing
Please see CONTRIBUTING for details.
Credits
- vladski
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-sms-clicksend with dependencies
clicksend/clicksend-php Version 4.0.*
illuminate/queue Version ^8.0
illuminate/notifications Version ^8.0
illuminate/support Version ^8.0