Download the PHP package kaydee123/msg91-laravel without Composer

On this page you can find all versions of the php package kaydee123/msg91-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package msg91-laravel

MSG91 Laravel Package

Laravel integration for MSG91 SMS and OTP services. This package provides a seamless Laravel integration for the kaydee123/msg91-php package.

Features

Requirements

Installation

Install the package via Composer:

The package will automatically register itself using Laravel's auto-discovery feature.

Configuration

Publish Configuration File

Publish the configuration file to customize settings:

This will create a config/msg91.php file in your Laravel application.

Environment Variables

Add your MSG91 Auth Key to your .env file:

You can get your MSG91 Auth Key from your MSG91 Dashboard.

Usage

Using the Facade

The package provides a Msg91 facade for easy access:

Using Dependency Injection

You can inject the Msg91Client directly into your controllers or services:

Using Helper Function

You can also use the msg91() helper function:

Using the Service Container

You can resolve the client from the service container:

Examples

SMS Examples

Send SMS using Template (Recommended):

Send SMS to Multiple Recipients:

Send DLT SMS (Promotional):

Send DLT SMS (Transactional):

OTP Examples

Send OTP (Template ID required for India):

Send OTP with Custom Options:

Verify OTP:

Retry/Resend OTP:

DLT Compliance for India

DLT (Distributed Ledger Technology) is mandatory for sending commercial SMS in India. TRAI requires all SMS messages to be DLT-compliant.

For Indian mobile numbers (country code 91), a Template ID is mandatory when sending OTP due to DLT compliance requirements. The package will automatically validate this requirement.

Error Handling

The package provides custom exception classes for better error handling:

Configuration Options

The configuration file (config/msg91.php) supports the following options:

API Reference

For complete API documentation, refer to the base package documentation: kaydee123/msg91-php

SMSBuilder Methods

OTPBuilder Methods

Laravel Version Compatibility

This package is tested and compatible with:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

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

Support

For MSG91 API documentation, visit https://docs.msg91.com/

For issues related to this package, please open an issue on GitHub.

Related Packages


All versions of msg91-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0,<8.6
kaydee123/msg91-php Version ^1.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kaydee123/msg91-laravel contains the following files

Loading the files please wait ...