2017 © Pedro Peláez
 

library mcheck-php

MCheck SDK for PHP

image

mcheck/mcheck-php

MCheck SDK for PHP

  • Monday, March 26, 2018
  • by kazinfoteh
  • Repository
  • 3 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 50 % Grown

The README.md

mcheck-php

Requirements

In order to use the library you need to have available one of CURL extension or HTTP_Request2:, (*1)

For CURL:, (*2)

php-curl
php-openssl

For HTTP_Request2 :, (*3)

pear install HTTP_Request2-2.3.0

By default the SDK is checking for CURL extension first and then fallbacks to HTTP_Request2. You can specify the method using the second argument from MCheckRest constructor., (*4)

Installation

The SDk can be installed using Composer:, (*5)

composer require  mcheck/mcheck-php

API Documentation

MCheck APIs are based on HTTP methods, which make it easy to integrate into your own products. You can use any HTTP client in any programming language to interact with the API. The SDK is only a wrapper over the REST API described [here][1], (*6)

Basic Usage for SDK:

For all properties accepted by the following methods check [the documentation][1]., (*7)


//create an instance of `MCheckRest` use mcheck\MCheckRest; $api = new MCheckRest("secret key here"); //validate a number using "Missed sms method". (type can be : sms) $response = $api->RequestValidation(array("type" => "sms", "phone" => "+number_here")); //verify a pin for a certain request $response = $api->VerifyPin(array("id" => "request id here", "pin" => "5659")); //check validation status for a certain request $response = $api->ValidationStatus(array("id" => "request id here"));

The Versions

26/03 2018

dev-master

9999999-dev https://github.com/kazinfoteh/mcheck-php

MCheck SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

number validation mcheck

26/03 2018

1.0

1.0.0.0 https://github.com/kazinfoteh/mcheck-php

MCheck SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

number validation mcheck

26/03 2018

dev-develop

dev-develop https://github.com/kazinfoteh/mcheck-php

MCheck SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

number validation mcheck