PHP code example of kvalitetskontroll / laravel-notification-channel-teletopia-sms

1. Go to this page and download the library: Download kvalitetskontroll/laravel-notification-channel-teletopia-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/ */

    

kvalitetskontroll / laravel-notification-channel-teletopia-sms example snippets


'teletopiasms' => [
    'user' => env('SERVICES_TELETOPIASMS_USER'),
    'password' => env('SERVICES_TELETOPIASMS_PASSWORD'),
    'url' => '', // api url
    'sender' => '', // sender name
    'whitelist' => array_filter(array_map('trim', explode(',', env('SERVICES_TELETOPIASMS_WHITELIST', '')))),
],

SERVICES_TELETOPIASMS_USER='' // username
SERVICES_TELETOPIASMS_PASSWORD='' // password
SERVICES_TELETOPIASMS_WHITELIST='' // comma separated list of phones which could get sms on local/beta

public function routeNotificationForTeletopiasms()
{
    return $this->phone; // 4712345678
}