PHP code example of hamid80386 / sms-sender

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

    

hamid80386 / sms-sender example snippets


return [
    'active' => \hamid80386\SmsSender\Services\SMS\ISMS::class,

    'isms' => [
        'username' => env('ISMS_USERNAME', 'XXX'),
        'password' => env('ISMS_PASSWORD', 'XXX'),
        'url' => env('ISMS_URL', 'XXX'),
    ],
];

smssend::send(['mobile'=>'NUMBER','body'=>'hello world']);
// OR
$sms = new SmsContext();
$sms->sendSMS([
    'mobiles' => 'mobile number',
    'body' => 'body',
]);

bash
php artisan vendor:publish --tag="sms-sender-provider"
bash
php artisan sms-sender:install