PHPackages                             donnie/msg91-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. donnie/msg91-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

donnie/msg91-php
================

To handle msg91 SMS and OTP

v1.0(7y ago)110PHPPHP ^5.3.3 || ^7.0

Since Sep 6Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Donnie/Msg91-PHP)[ Packagist](https://packagist.org/packages/donnie/msg91-php)[ RSS](/packages/donnie-msg91-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

msg91
=====

[](#msg91)

PHP Composer package for Msg91. Strictly following PSR standards.

Install
-------

[](#install)

1. Add this repo to your composer.json.

```
,
    "repositories": [
        {
            "type": "vcs",
            "url": "https://git@github.com/Donnie/Msg91-PHP"
        }
    ]

```

2. And require this in composer.json

```
,
    "require": {
        "donnie/msg91-php": "dev-master"
    }

```

3. Run `composer update`

Usage for OTP
-------------

[](#usage-for-otp)

```
use Donnie\Msg91\OTP;

// set your auth key and your sending name
$otp = new OTP('12234..your-authkey...1234', 'MYBIZN');

```

### Send OTP

[](#send-otp)

```
// numbers must have country code
// country code may or may not have + sign in the beginning
// numbers may or may not have zero in the beginning
// in absence of country code by default 91 would be added

$otp->set('919998888777', 'jimkirk@starfleet.com', '320')->send();
// email argument is optional
// third argument is for template ID, optional
// this will send to phone and email

// to send SMS to numbers other than Indian you will need clearance from Msg91 first

```

### Resend OTP

[](#resend-otp)

```
// default for second arg is 'voice'
$otp->resend('919998888777', 'text')->send();

```

### Verify OTP

[](#verify-otp)

```
// to verify add phone and code
$res = $otp->get('919998888777', '6984')->send();

// you can read the outcome from $res->type (error || success)

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2808d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef27686b6a24276da2d0d5956600abd369e450e7de1f3cb2d8761ccfe4e66697?d=identicon)[donnie](/maintainers/donnie)

---

Top Contributors

[![LawSikho](https://avatars.githubusercontent.com/u/35661366?v=4)](https://github.com/LawSikho "LawSikho (1 commits)")

### Embed Badge

![Health badge](/badges/donnie-msg91-php/health.svg)

```
[![Health](https://phpackages.com/badges/donnie-msg91-php/health.svg)](https://phpackages.com/packages/donnie-msg91-php)
```

###  Alternatives

[tomk79/php-excel2html

Convert Excel(\*.xlsx) to HTML table. with PHPExcel.

1513.7k3](/packages/tomk79-php-excel2html)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
