PHPackages                             msg91/msg91-one-api - 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. [API Development](/categories/api)
4. /
5. msg91/msg91-one-api

ActiveLibrary[API Development](/categories/api)

msg91/msg91-one-api
===================

A Laravel PHP package to run MSG91 services

015PHP

Since Jun 19Pushed 2y agoCompare

[ Source](https://github.com/Walkover-Web-Solution/msg91-php-plugins)[ Packagist](https://packagist.org/packages/msg91/msg91-one-api)[ RSS](/packages/msg91-msg91-one-api/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

msg91/msg91
===========

[](#msg91msg91)

Introduction
------------

[](#introduction)

`msg91/msg91` is a Laravel PHP package that provides functionality to integrate MSG91 services into your Laravel applications.

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

[](#installation)

You can install this package via Composer. Run the following command in your Laravel project directory:

```
composer require msg91/msg91
```

USAGE
-----

[](#usage)

OTP VERIFICATION
================

[](#otp-verification)

Once the package is installed, you can use it in your Laravel application for OTP verification as follows:

```
use Msg91\Services\OTPService;

// Import the OTPService class
$otpService = new OTPService(); // Instantiate the OTPService class

$authKey = 'your_auth_key';
$token = 'access-token'; // Replace with the actual access token to verify

$response = $otpService->verifyToken($authKey, $token);

// Handle the response
// Example:
if ($response['type'] === 'success') {
    echo 'OTP verification successful';
} else {
    echo 'OTP verification failed: ' . $response['message'];
}
```

Campaign Service
----------------

[](#campaign-service)

You can also use this package to run campaigns using the CampaignService. Below is an example of how to use the CampaignService in your Laravel application:

```
use Msg91\Services\CampaignService;

// Instantiate the CampaignService class
$service = new CampaignService('your_auth_key');

// Define your campaign slug and input data : max 1000 including cc and bcc as individual entity
$campaignSlug = 'your_campaign_slug';
$inputData = [
    "data" => [
        [
            "to" => 'recipient1@example.com',
            "cc" => 'cc1@example.com',
            "bcc" => 'bcc1@example.com',
            "mobiles" => '919876543210',
            "name" => 'Recipient 1',
            "from_name" => 'Sender Name',
            "from_email" => 'sender@example.com',
            "variables" => [
                "var1" => 'value1',
                "var2" => 'value2',
            ],
        ],
        [
            "to" => 'recipient1@example.com',
            "cc" => 'cc1@example.com',
            "bcc" => 'bcc1@example.com',
            "mobiles" => '919876543210',
            "name" => 'Recipient 1',
            "from_name" => 'Sender Name',
            "from_email" => 'sender@example.com',
            "variables" => [
                "var1" => 'value1',
                "var2" => 'value2',
            ],
        ], ...
];

// Run the campaign
$response = $service->runCampaign($campaignSlug, $inputData);

// Handle the response
var_dump($response);
```

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 53.8% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1237dd528956d160bf5d1c5e1b9a81d7b39d38efc599dc5b6667d709a6626cbe?d=identicon)[msg91](/maintainers/msg91)

---

Top Contributors

[![code-raj](https://avatars.githubusercontent.com/u/72591005?v=4)](https://github.com/code-raj "code-raj (7 commits)")[![Prashant0501](https://avatars.githubusercontent.com/u/99384066?v=4)](https://github.com/Prashant0501 "Prashant0501 (6 commits)")

### Embed Badge

![Health badge](/badges/msg91-msg91-one-api/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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