PHP code example of kheme / laravel-supertext-nigeria

1. Go to this page and download the library: Download kheme/laravel-supertext-nigeria 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/ */

    

kheme / laravel-supertext-nigeria example snippets


'providers' => [
    // Other service providers...
    Kheme\SuperTextNg\SuperTextNgServiceProvider::class,
],

use Kheme\SuperTextNg\Facade\SMS;

'aliases' => [
    ...
    'SuperTextNg' => Kheme\SuperTextNg\Facade\SMS::class,
],

$app->register(Kheme\SuperTextNg\SuperTextNgServiceProvider::class);

use Kheme\SuperTextNg\Facades\SMS;

SMS::from('Kheme')
    ->to('2348153332428')
    ->message('Using the facade to send a message.')
    ->send();

SMS::from('Kheme')
    ->to('2348153332428')
    ->to('2348056511193')
    ->message('Using the facade to send a message.')
    ->send();

SMS::from('Kheme')
    ->to(
        [
            '2348153332428',
            '2348056512393',
        ]
    ),
    ->message('Using the facade to send a message.')
    ->send();

SMS::from('Kheme')
    ->to('2348153332428')
    ->message('Using the facade to send a message.')
    ->ignoreDND()
    ->send();

SMS::from('Kheme')
    ->to('2348153332428')
    ->message('Using the facade to send a message.')
    ->returnBalance()
    ->send();

SMS::from('Kheme')
    ->to('2348153332428')
    ->message('Using the facade to send a message.')
    ->returnUnitsUsed()
    ->send();

SMS::from('Kheme')
    ->to('2348153332428')
    ->message('Using the facade to send a message.')
    ->returnBalance()
    ->returnUnitsUsed()
    ->ignoreDND()
    ->send();

return SMS::balance();
bash
php artisan vendor:publish --provider="Kheme\SuperTextNG\SuperTextNgServiceProvider"
bash
mkdir config
cp vendor/kheme/laravel-supertext-nigeria/config/supertextng.php config/supertextng.php