1. Go to this page and download the library: Download tartan/laravel-iranian-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/ */
//using the default adapter
resolve('iraniansms')->make()->send('0912xxxxxxx','this is test message');
//using kavenegar adapter with default config
resolve('iraniansms')->make('kavenegar')->send('0912xxxxxxx','this is test message');
//using kavenegar adapter with sender2 config
resolve('iraniansms')->make('kavenegar', 'sender2')->send('0912xxxxxxx','this is test message');
//using Facede
use Iraniansms;
Iraniansms::make()->send('0912xxxxxxx','this is test message');