PHP code example of omalizadeh / laravel-sms
1. Go to this page and download the library: Download omalizadeh/laravel-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/ */
omalizadeh / laravel-sms example snippets
use Omalizadeh\SMS\Facades\SMS;
use Omalizadeh\SMS\Requests\SendSMSRequest;
SMS::send(new SendSMSRequest('+989123456789', 'Hello!'));
use Omalizadeh\SMS\Facades\SMS;
use Omalizadeh\SMS\Requests\SendTemplateSMSRequest;
SMS::sendTemplate(new SendTemplateSMSRequest('+989123456789', 'template_code', [
'param1' => 'coupon',
]));
bash
php artisan vendor:publish --provider=Omalizadeh\SMS\Providers\SMSServiceProvider