PHP code example of yhshanto / itech-sms-channel

1. Go to this page and download the library: Download yhshanto/itech-sms-channel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yhshanto / itech-sms-channel example snippets


'itech' => [
    'sms' => [
        'endpoint' => 'https://api.infobip.com/api/v3/sendsms/plain?user=demo&password=demo&sender=Azzoa&SMSText=[message]&GSM=[to]&type=longSMS'
    ]
]

/**
 * Get the notification's delivery channels.
 *
 * @param  mixed  $notifiable
 * @return array
 */
public function via($notifiable)
{
    return ['itech'];
}

/**
 * Get the sms representation of the notification.
 *
 * @param  mixed  $notifiable
 * @return array|MailMessage|\NotificationChannels\Fcm\FcmMessage
 */
public function toItechSms($notifiable)
{
    return 'Write somthing here';
}