PHP code example of uithread / mgov-sms

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

    

uithread / mgov-sms example snippets

   
    Uithread\MgovSMS\MgovSMSServiceProvider::class,
    
    'MgovSMS' => Uithread\MgovSMS\Facades\MgovSMSFacade::class,

    php artisan migrate

      use MgovSMS;
     
      MgovSMS::sendSingleSMS('MESSAGE Hello World!', '99########');
      MgovSMS::sendOtpSMS('MESSAGE Hello World!', '99########');
      MgovSMS::sendBulkSMS('MESSAGE Hello World!', '99########,98########');
      MgovSMS::sendSingleUnicode('MESSAGE Hello World!', '99########');
      MgovSMS::sendUnicodeOtpSMS('MESSAGE Hello World!', '99########');
      MgovSMS::sendBulkUnicode('MESSAGE Hello World!', '99########,98########');
      
bash
    php artisan vendor:publish --provider="Uithread\MgovSMS\MgovSMSServiceProvider"  
bash
├── LICENSE
├── README.md
├── composer.json
└── src
    ├── MgovSMS.php
    ├── MgovSMSServiceProvider.php
    ├── config
    │   └── mgov-sms.php
    ├── Facades
    │   └── MgovSMSFacade.php
    ├── migrations
    │   └── 2019_08_20_083308_create_t_sms_logs_table.php
    └── Models
        └── TSmsLog.php