composer require pejmankheyri/smsirlaravel
php artisan vendor:publish
php artisan migrate
Smsirlaravel::send()
Smsirlaravel::credit()
Smsirlaravel::getLines()
Smsirlaravel::addToCustomerClub()
Smsirlaravel::deleteContact()
Smsirlaravel::sendToCustomerClub()
Smsirlaravel::addContactAndSend()
Smsirlaravel::sendVerification()
Smsirlaravel::ultraFastSend()
Smsirlaravel::getSentMessages()
Smsirlaravel::getReceivedMessages()
- Add this code in the
app.php
file in the providers section:pejmankheyri\smsirlaravel\SmsirlaravelServiceProvider::class,
- Add this code in the
app.php
file in the aliases section:'Smsirlaravel' => pejmankheyri\smsirlaravel\SmsirlaravelFacade::class,
- After publishing the package, open the
smsirlaravel.php
file in the config folder and make the settings as below:
'webservice-url' => env('SMSIR-WEBSERVICE-URL','https://ws.sms.ir/'),
'api-key' => env('SMSIR-API-KEY','Your sms.ir api key'),
'secret-key' => env('SMSIR-SECRET-KEY','Your sms.ir secret key'),
'line-number' => env('SMSIR-LINE-NUMBER','Your sms.ir line number'