yhshanto / itech-sms-channel
Itech flexible sms Notification Channel for laravel.
Installs: 263
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/yhshanto/itech-sms-channel
Requires
- illuminate/notifications: ^7.0 || ^8.0
This package is auto-updated.
Last update: 2025-09-15 16:49:14 UTC
README
Installation
composer require yhshanto/itech-sms-channel
Configuration
You must add bellow code to your config/services.php
'itech' => [ 'sms' => [ 'endpoint' => 'https://api.infobip.com/api/v3/sendsms/plain?user=demo&password=demo&sender=Azzoa&SMSText=[message]&GSM=[to]&type=longSMS' ] ]
[message]
will replaced by original message
[to]
will replaced by notifiable route
Add itech
in via method of your notification class
/** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['itech']; }
also add this method in your notification class which will return a sms string
/** * Get the sms representation of the notification. * * @param mixed $notifiable * @return array|MailMessage|\NotificationChannels\Fcm\FcmMessage */ public function toItechSms($notifiable) { return 'Write somthing here'; }
You must have phone
attribute or routeNotificationForItech
method (return a valid phone number) in your notifiable class like App\User