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
// On top...
use Omalizadeh\Sms\Facades\Sms;
////
Sms::send('09123456789', 'message');
// On top...
use Omalizadeh\Sms\Facades\Sms;
////
Sms::sendTemplate('09123456789', 'template_name', [
'token' => 'code',
]);
bash
php artisan vendor:publish --provider=Omalizadeh\Sms\Providers\SmsServiceProvider