PHP code example of fibdesign / sms

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

    

fibdesign / sms example snippets


$smsService->to(["0915221484"])
    ->message("تست پیام")
    ->dispatch();

$smsService->to(["0915221484","0915221484"])
    ->message("تست پیام")
    ->as("group")
    ->dispatch();

$smsService->to(["0915221484","0915221484"])
    ->message("تست پیام")
    ->template("phoneVerification")
    ->as("template")
    ->dispatch();

$smsService
    ->as("credit")
    ->dispatch();
bash
php artisan vendor:publish