PHP code example of hossammonir / msegat

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

    

hossammonir / msegat example snippets


    use HossamMonir\Msegat\Facades\Msegat;

    Msegat::numbers(['05xxxxxxxx', '05xxxxxxxx'])
            ->message('Hello World')
            ->sendWithDefaultSender();

    use HossamMonir\Msegat\Facades\Msegat;

    Msegat::numbers(['05xxxxxxxx', '05xxxxxxxx'])
            ->message('Hello World')
            ->sendWithSender('DigitalTunnel');

    use HossamMonir\Msegat\Facades\Msegat;

    Msegat::numbers(['05xxxxxxxx'])
            ->sendOTP();

    use HossamMonir\Msegat\Facades\Msegat;

    Msegat::numbers(['05xxxxxxxx'])
            ->sendOTP('OTP');

    use HossamMonir\Msegat\Facades\Msegat;

    Msegat::numbers(['9665xxxxxxxx', '9665xxxxxxxx', '9665xxxxxxxx'])
        ->message('Hello World')
        ->calculateCost();

    use HossamMonir\Msegat\Facades\Msegat;

    Msegat::getSenders();

    use HossamMonir\Msegat\Facades\Msegat;

    Msegat::getBalance();
bash
php artisan vendor:publish --provider="HossamMonir\Msegat\MsegatServiceProvider"