Download the PHP package husnet/laravel-smsup.ch without Composer
On this page you can find all versions of the php package husnet/laravel-smsup.ch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download husnet/laravel-smsup.ch
More information about husnet/laravel-smsup.ch
Files in husnet/laravel-smsup.ch
Package laravel-smsup.ch
Short Description Laravel package to provide SmsUp.ch API integration.
License MIT
Informations about the package laravel-smsup.ch
SmsUp.ch API Integration for Laravel 8+
Installation
Install Package
You can install this package via composer:
Configuration
Add your SmsUp API key to your config/services.php
file:
Set simulate
to true
if you want to simulate submitting messages, it's perfect for testing and debugging, it has no cost.
Usage
Using Laravel Notification
Use artisan to create a notification:
Return [smsUpCh]
in the public function via($notifiable)
method of your notification:
Add the method public function toSmsUp($notifiable)
to your notification, and return an instance of SmsUpChMessage
:
If you don't indicate the parameter to
, make sure your notifiable entity has routeNotificationForSmsUpCh
method defined:
Using SmsUp Facade
Send messages
Available Events
LaravelSmsUp comes with handy events which provides the required information about the SMS messages.
Messages Was Sent
Triggered when one or more messages are sent.
Example:
In your EventServiceProvider
:
``
SmsUp.ch API Documentation
Visit SmsUp.ch API Documentation for more information.
Support
Feel free to post your issues in the issues section.
Credits
- Gaétan Huser
-
All Contributors
- Inspired by Squareetlabs/LaravelSmsUp
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-smsup.ch with dependencies
ext-json Version *
laravel/framework Version ^8.0
guzzlehttp/guzzle Version ^7.0.1
nesbot/carbon Version ^2.0