PHP code example of shafimsp / laravel-sms-notification-channel-mobilyws-driver

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

    

shafimsp / laravel-sms-notification-channel-mobilyws-driver example snippets


    'mobilyws' => [
        // Set yor login credentials to communicate with mobily.ws Api
        'mobile' => env('MOBILYWS_KEY', ''),
        'password' => env('MOBILYWS_KEY', ''),

        // Or use the generated apiKey from your mobily.ws account
        'key' => env('MOBILYWS_KEY', ''),

        'sms_from' => env('MOBILYWS_SMS_FROM', ''),

        // Required by mobily.ws Don't Change.
        'applicationType' => 68,

        // Authentication mode. possible values: api, password, or auto
        'authentication' => 'auto',

        // 3 when using UTF-8. Don't Change
        'lang' => '3',

        /*
        |--------------------------------------------------------------------------
        | Define options for the Http request. (Guzzle http client options)
        |--------------------------------------------------------------------------
        |
        | You do not need to change any of these settings.
        |
        |
        */
        'guzzle' => [
            'client' => [
                // The Base Uri of the Api. Don't Change this Value.
                'base_uri' => 'http://mobily.ws/api/',
            ],

            // Request Options. http://docs.guzzlephp.org/en/stable/request-options.html
            'request' => [
                'http_errors' => true,
                // For debugging
                'debug' => false,
            ],
        ],
    ]