Download the PHP package deshack/laravel-sms-clicksend without Composer
On this page you can find all versions of the php package deshack/laravel-sms-clicksend. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deshack/laravel-sms-clicksend
More information about deshack/laravel-sms-clicksend
Files in deshack/laravel-sms-clicksend
Package laravel-sms-clicksend
Short Description ClickSend Notifications channel for Laravel 5.6+
License MIT
Homepage https://github.com/deshack/laravel-sms-clicksend
Informations about the package laravel-sms-clicksend
ClickSend notifications channel for Laravel 5.6+
This package makes it easy to send notifications using clicksend.com with Laravel 5.6+. 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
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-sms-clicksend with dependencies
ext-json Version *
clicksend/clicksend-php Version ~5.0.1
illuminate/queue Version ^5.6
illuminate/notifications Version ^5.6
illuminate/support Version ^5.6
illuminate/events Version ^5.6