2017 © Pedro Peláez
 

library sendotp

API abstraction for SendOTP service by MSG91.

image

invokatis/sendotp

API abstraction for SendOTP service by MSG91.

  • Wednesday, January 17, 2018
  • by vaibhavpandeyvpz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 435 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

invokatis/sendotp

API abstraction for SendOTP service by MSG91., (*1)

Latest Version ![Downloads][downloads-image] ![PHP Version][php-version-image] ![License][license-image], (*2)

SensioLabsInsight, (*3)

Install

composer require invokatis/sendotp

Usage

<?php

/**
 * @desc Create a SendOTP\Client with your auth key.
 */
$client = new SendOTP\Client('<auth-key>');

/**
 * @desc Send and retrieve whether successful or not.
 */
$sent = $client->generate('9876543210', '91');

/**
 * @desc Verify an OTP entered by user.
 */
$ok = $client->verify($_POST['otp'], '9876543210', '91');
if ($ok) {
    // OTP verified successfully!
}

License

See LICENSE.md file., (*4)

The Versions

17/01 2018

dev-master

9999999-dev http://invokatis.github.io/sendotp

API abstraction for SendOTP service by MSG91.

  Sources   Download

MIT

The Requires

 

by Invokatis Technologies

client msg91 sendotp

17/01 2018

1.1

1.1.0.0 http://invokatis.github.io/sendotp

API abstraction for SendOTP service by MSG91.

  Sources   Download

MIT

The Requires

 

by Invokatis Technologies

client msg91 sendotp

12/02 2017

1.0

1.0.0.0 http://invokatis.github.io/sendotp

API abstraction for SendOTP service by MSG91.

  Sources   Download

MIT

The Requires

 

by Invokatis Technologies

client msg91 sendotp