pejmankheyri/smsirlaravel

This package is abandoned and no longer maintained. No replacement package was suggested.

sms.ir Laravel Package

v1.0.2 2021-04-11 06:44 UTC

This package is auto-updated.

Last update: 2024-05-11 11:53:16 UTC


README

111814382-a31bc700-88ef-11eb-94e2-41dd10c0d2b1.png + 114069542-586ce980-98b4-11eb-8e18-c625cb8812d1.png

version Total Downloads Monthly Downloads License

Send SMS by Laravel

A practical package for sending SMS through the sms.ir panel

Installation

composer require pejmankheyri/smsirlaravel
php artisan vendor:publish
php artisan migrate

Features

  • Smsirlaravel::send()
  • Smsirlaravel::credit()
  • Smsirlaravel::getLines()
  • Smsirlaravel::addToCustomerClub()
  • Smsirlaravel::deleteContact()
  • Smsirlaravel::sendToCustomerClub()
  • Smsirlaravel::addContactAndSend()
  • Smsirlaravel::sendVerification()
  • Smsirlaravel::ultraFastSend()
  • Smsirlaravel::getSentMessages()
  • Smsirlaravel::getReceivedMessages()

Settings

  • 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'

Development Assistance

We welcome pull requests.

For major changes, please open an issue first so we can discuss what you want to change.

License

MIT