Download the PHP package xefi/sms-factor-notification-channel without Composer
On this page you can find all versions of the php package xefi/sms-factor-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xefi/sms-factor-notification-channel
More information about xefi/sms-factor-notification-channel
Files in xefi/sms-factor-notification-channel
Package sms-factor-notification-channel
Short Description Sms Factor Notification Channel for laravel.
License MIT
Informations about the package sms-factor-notification-channel
Laravel SMSFactor Notification Channel
Prerequisites
Before you can send notifications via SMSFactor, you need to install the xefi/sms-factor-notification-channel
The package includes a configuration file. However, you are not required to export this configuration file to your own application. You can simply use the SMS_FACTOR_TOKEN
environment variables to define your SMSFactor token.
Notification channel
In order to configure the notification to deliver via the SMSFactor channel, you need to specify this in the via
method of your notification:
Formating SMS Notifications
If a notification supports being sent as an SMS, you should define a toSmsFactor
method on the notification class. This method will receive a $notifiable entity and should return an Xefi\SmsFactor\Messages\SmsFactorMessage
instance:
Customizing the "To" Number
If you would like to customize the number depending on the notifiable object you are calling, you'll need to implement the routeNotificationForSmsFactor
method on your notifiable model:
Customizing the "From" Number
If you would like to send some notifications from a phone number that is different from the phone number specified by your SMS_FACTOR_SMS_FROM
environment variable, you may call the sender
method on a SmsFactorMessage
instance:
Support us
Since 1997, XEFI is a leader in IT performance support for small and medium-sized businesses through its nearly 200 local agencies based in France, Belgium, Switzerland and Spain. A one-stop shop for IT, office automation, software, digitalization, print and cloud needs. Want to work with us ?
All versions of sms-factor-notification-channel with dependencies
illuminate/notifications Version ^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
smsfactor/smsfactor-php-sdk Version ^1.0.5