PHP code example of alexr1712 / netelipsmslaravel

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

    

alexr1712 / netelipsmslaravel example snippets

bash
php artisan vendor:publish --provider="AlexR1712\NetelipLaravel\NetelipLaravelServiceProvider" --tag="config"
 php
use AlexR1712\NetelipLaravel\NetelipLaravel;
$sms = new NetelipLaravel;

$sms->send('0058424XXXXXXX', 'Message Here');
/*
send method return the following 

[
     "is_sent" => true,
     "sms_id" => "1613770552.2529",
     "statusCode" => 200,
     "remainingBalance" => 4.602,
]
*/