Downloads
Stars
Version
Official Laravel Package for sms.ir
آموزش فارسی نصب و استفاده از پکیج ارسال پیامک لاراول
رفع مشکل نصب پکیج sms.ir بر روی laravel 5.8 با این روش میتوانید بر روی نسخه 5.8 laravel به راحتی این پیکج رو نصب کنید
Website : hosein-rezaei.ir
Email : [email protected]
در فایل env تمامی موارد را به شکل زیر که توضیح داده شده است اصلاح نمایید بجای "-" از "_" استفاده نمایید
Hi, if you have an account in sms.ir, you can use this package for laravel
composer require hoseinrezaei/smsirlaravel:dev-master
php artisan vendor:publish
php artisan migrate
Setup:
add this line to your app.php providers: ipecompany\smsirlaravel\SmsirlaravelServiceProvider::class,
and add this line to your app.php aliases: 'Smsirlaravel' => ipecompany\smsirlaravel\SmsirlaravelFacade::class,
After publish the package files you must open smsirlaravel.php in config folder and set the api-key, secret-key and your sms line number.
Like this:
'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'
Note:
you can set the keys and line number in your .env file
like this:
SMSIR_WEBSERVICE_URL=https://ws.sms.ir/
SMSIR_API_KEY=your api-key
SMSIR_SECRET_KEY=your secret-key
SMSIR_LINE_NUMBER=1000465******
Smsirlaravel::send()
Smsirlaravel::credit()
Smsirlaravel::getLines()
Smsirlaravel::addToCustomerClub()
Smsirlaravel::deleteContact();
Smsirlaravel::sendToCustomerClub();
Smsirlaravel::addContactAndSend();
Smsirlaravel::sendVerification();
Smsirlaravel::ultraFastSend();
Smsirlaravel::getSentMessages();
Smsirlaravel::getReceivedMessages();