PHP code example of karabinse / telnect-sms

1. Go to this page and download the library: Download karabinse/telnect-sms 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/ */

    

karabinse / telnect-sms example snippets




// ...

public function routeNotificationForTelnectSms($notification)
{
    return $this->phone;
}





use Karabin\TelnectSms\TelnectSmsChannel;
use Karabin\TelnectSms\TelnectSmsMessage;
use Illuminate\Notifications\Notification;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [TelnectSmsChannel::class];
    }

    public function toTelnectSms($notifiable)
    {
        return TelnectSmsMessage::create()
            ->body('Your account is created and ready to be used')
            ->sender('MyBusiness');
    }
}



return [

    // ...

    'telnect_sms' => [
        'api_key' => env('TELNECT_SMS_API_KEY'),
    ],

];