Download the PHP package jordanhavard/laravel-sms-clicksend without Composer
On this page you can find all versions of the php package jordanhavard/laravel-sms-clicksend. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jordanhavard/laravel-sms-clicksend
More information about jordanhavard/laravel-sms-clicksend
Files in jordanhavard/laravel-sms-clicksend
Package laravel-sms-clicksend
Short Description ClickSend Notifications channel for Laravel 9
License MIT
Homepage https://github.com/jordanhavard/laravel-sms-clicksend
Informations about the package laravel-sms-clicksend
ClickSend notifications channel for Laravel 9.x
This package makes it easy to send notifications using clicksend.com with Laravel 9.x. 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:
The package will be auto discovered.
Publish the config/clicksend.php
configuration file using the command below
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 (Not yet implemented)
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 (not yet implemented)
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.