PHPackages                             androidneha/laravel-msg91 - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. androidneha/laravel-msg91

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

androidneha/laravel-msg91
=========================

Laravel integration for Msg91 messaging API.

1.1.1(6y ago)512.3k1[3 issues](https://github.com/androidneha/laravel-msg91/issues)MITPHPPHP &gt;=7.0

Since Apr 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/androidneha/laravel-msg91)[ Packagist](https://packagist.org/packages/androidneha/laravel-msg91)[ RSS](/packages/androidneha-laravel-msg91/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Laravel MSG91 - MSG91 Integration For Laravel
=============================================

[](#laravel-msg91---msg91-integration-for-laravel)

### About

[](#about)

This package integrates [MSG91](https://msg91.com)'s SMS solution nicely with [Laravel](https://laravel.com/) 5 adding support for **Notification** &amp; **Validator** as well.

### Registration

[](#registration)

[Sign up](https://msg91.com/signup) for MSG91 and get the auth key from your account. You can find the `auth key` from `Dashboard > API` key after signing in.

### Installation

[](#installation)

```
composer require androidneha/laravel-msg91
```

#### Laravel &lt; 5.5

[](#laravel--55)

Once the package is installed, open your `app/config/app.php` configuration file and locate the `providers` key. Add the following line to the end:

```
Laravel\Msg91\ServiceProvider::class
```

Next, locate the `aliases` key and add the following line:

```
'Msg91' => Laravel\Msg91\Facade::class,
```

### Configuration

[](#configuration)

Put the credentials and preferences in ENV with the keys `MSG91_AUTH_KEY`, `MSG91_DEFAULT_SENDER`, `MSG91_DEFAULT_ROUTE`, `MSG91_DEFAULT_COUNTRY`. If you want to customize this, publish the default configuration which will create a config file `config/msg91.php`.

```
$ php artisan vendor:publish
```

### Usage

[](#usage)

Basic
-----

[](#basic)

- Send an SMS to one or more numbers.

```
