mcheck/mcheck-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mcheck/mcheck-php

Composer 安装命令:

composer require mcheck/mcheck-php

包简介

MCheck SDK for PHP

README 文档

README

Requirements

In order to use the library you need to have available one of CURL extension or HTTP_Request2:

For CURL:

php-curl
php-openssl

For HTTP_Request2 :

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.

Installation

The SDk can be installed using Composer:

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

Basic Usage for SDK:

For all properties accepted by the following methods check the documentation.

//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"));

统计信息

  • 总下载量: 63
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固