PHP code example of tekkenking / swissecho

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

    

tekkenking / swissecho example snippets


'providers' => [
    // ...
    Tekkenking\Swissecho\SwissechoServiceProvider::class,
],

    Swissecho::route('sms', function($ms) {
        return $ms->to('XXXXXXXXXXXX, XXXXXXXXXXXX ')
            ->content('Wonders shall never end')
            ->line('Hello world');
            //->gateway('routemobile') //optional
            //->sender('SimbooBiz'); //optional
    })
    ->to('XXXXXXXXXXXX') //optional
    ->sender('Smart') //optional
    ->gateway('termii') //optional
    ->go();

    swissecho()->route('sms', function($ms) {
        return $ms->to('XXXXXXXXXXXX, XXXXXXXXXXXX ')
            ->content('Wonders shall never end')
            ->line('Hello world');
            //->gateway('routemobile') //optional
            //->sender('SimbooBiz'); //optional
    })
    ->to('XXXXXXXXXXXX') //optional
    ->sender('Smart') //optional
    ->gateway('termii') //optional
    ->go();

    swissecho()->quick('XXXXXXXXXXXX', "My name is bola");

    swissecho()->message("Hello world")
    ->to('XXXXXXXXXXXX')
    //->sender('Raimi')
    //->gateway('termii')
    ->route('slack')
    ->go();

    swissecho()->gateway('vonage')->quick('XXXXXXXXXXXX', "My name is bola");

    $sw = swissecho();
    //$sw->mockNotifiable($user);
    $sw->gateway('termii');
    $sw->to = "XXXXXXXXXXXX";
    $sw->sender = "AXIX";
    $sw->message = "The world is a beauty place created by GOD";
    $sw->go();