PHPackages                             nimah79/laravel-iranian-sms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. nimah79/laravel-iranian-sms

Abandoned → [juniora/laravel-iranian-sms](/?search=juniora%2Flaravel-iranian-sms)Laravel-component[HTTP &amp; Networking](/categories/http)

nimah79/laravel-iranian-sms
===========================

Laravel 5.x sms handler for working with most iranian sms operators

v1.5.0(1y ago)22.1k1MITPHPPHP &gt;=7.0

Since Apr 11Pushed 1y agoCompare

[ Source](https://github.com/JunioraTeam/laravel-iranian-sms)[ Packagist](https://packagist.org/packages/nimah79/laravel-iranian-sms)[ RSS](/packages/nimah79-laravel-iranian-sms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

Laravel SMS Component
=====================

[](#laravel-sms-component)

Laravel Package for dealing with Iranian SMS providers working with Laravel 5+ Support multiple config for each provider

Installation
------------

[](#installation)

1.Installing Via composer

```
composer require juniora/laravel-iranian-sms
```

2.Add this to your app service providers :

```
    Tartan\IranianSms\SmsServiceProvider::class,
```

3.Add this to your aliases :

```
    'IranianSms' => Tartan\IranianSms\Facades\IranianSms::class
```

4.Publish the config file

```
php artisan vendor:publish --provider="Tartan\IranianSms\SmsServiceProvider" --tag=config
```

Usage Example :
---------------

[](#usage-example-)

```
    //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');
```

### available adapters

[](#available-adapters)

- log (no charge adapter for development purposes)
- slack (no charge adapter for development and staging environment)
- discord (no charge adapter for development and staging environment)
- mehrafraz مهر افراز
- kavenegar کاوه نگار
- smsir اسمس آی آر
- ghasedak قاصدک
- parsasms پارسا اسمس

Example config:
---------------

[](#example-config)

```
