Download the PHP package tesark/msg91-php without Composer

On this page you can find all versions of the php package tesark/msg91-php. 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?
tesark/msg91-php
Rate from 1 - 5
Rated 3.00 based on 1 reviews

Informations about the package msg91-php

image

MSG91 SMS & OTP Composer Package

image Scrutinizer Code Quality Build Status Code Coverage

Installation

Run the following command to install the latest applicable version of the package:

Supported FrameWorks

Config file setup

Three ways send Authkey

Tips 1: Using Config

Tips 2: Using Class parameter

Tips 3: Dot Env File

Coding Standards

The entire library is intended to be PSR-1, PSR-2 compliant.

SMS

Msg91 Send SMS

Parameter name Data type Description
authkey * alphanumeric Login authentication key (this key is unique for every user)
mobiles * integer Keep numbers in international format (with country code), multiple numbers should be separated by comma (,)
message * varchar Message content to send
sender * varchar Receiver will see this as sender's ID.
route * varchar If your operator supports multiple routes then give one route name. Eg: route=1 for promotional, route=4 for transactional SMS.
country numeric 0 for international,1 for USA, 91 for India.
flash integer (0/1) flash=1 (for flash SMS)
unicode integer (0/1) unicode=1 (for unicode SMS)
schtime date and time When you want to schedule the SMS to be sent. Time format could be of your choice you can use Y-m-d h:i:s (2020-01-01 10:10:00) Or Y/m/d h:i:s (2020/01/01 10:10:00) Or you can send unix timestamp (1577873400)
afterminutes integer Time in minutes after which you want to send sms.
response varchar By default you will get response in string format but you want to receive in other format (json,xml) then set this parameter. for example: &response=json or &response=xml
campaign varchar Campaign name you wish to create.

operator supports.

SMS API

1. SendTransactional & SendPromotional Using GET

Input Data

Sample Input Data

API

2. SendBulkSms Using POST

Input Data

Sample Input Data

API

Sample XML

Sample Output

Note : Output will be request Id which is alphanumeric and contains 24 character like mentioned above. With this request id, delivery report can be viewed. If request not sent successfully, you will get the appropriate error message. View error codes

OTP API

Msg91 Send OTP

SEND OTP

Parameter name Data type Description
authkey * alphanumeric Login authentication key (this key is unique for every user)
mobile * integer Keep number in international format (with country code)
message varchar Message content to send. (default : Your verification code is ##OTP##.)
sender varchar Receiver will see this as sender's ID. (default : OTPSMS)
otp integer OTP to send and verify. If not sent, OTP will be generated.
otp_expiry integer Expiry of OTP to verify, in minutes (default : 1 day, min : 1 minute)
otp_length integer Number of digits in OTP (default : 4, min : 4, max : 9)

Input Data

Sample Input Data

API

Sample Output

RESEND OTP

Input Data

Sample Input Data

API

Sample Output

VERIFY OTP

Input Data

Sample Input Data

OtpSend::verifyOtp(919***41,9195****421);

API

Sample Output

NOTE:

Get in touch

If you have any suggestions, feel free to email me at [email protected] or ping me on Twitter with @venkatskpi.


All versions of msg91-php with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ~6.2
monolog/monolog Version ~1.13
hassankhan/config Version 0.8.2
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 tesark/msg91-php contains the following files

Loading the files please wait ....