search
HomePHP LibrariesOther librariesPHP WeChat public platform development interface class
PHP WeChat public platform development interface class
<?php
define("TOKEN", "weixin");
$wechatObj = new wechatCallbackapiTest();
if (!isset($_GET['echostr'])) {
  $wechatObj->responseMsg();
}else{
  $wechatObj->valid();
}
class wechatCallbackapiTest
{
  //验证消息
  public function valid()
  {
    $echoStr = $_GET["echostr"];
    if($this->checkSignature()){
      echo $echoStr;
      exit;
    }
  }

This is a php WeChat public platform development interface class. Friends who need it can download and use

Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

PHP WeChat public platform development class example, PHP public platform example_PHP tutorialPHP WeChat public platform development class example, PHP public platform example_PHP tutorial

13Jul2016

PHP WeChat public platform development class instance, PHP public platform instance. PHP WeChat public platform development class examples, PHP public platform examples This article describes the PHP WeChat public platform development class examples. Share it with everyone for your reference. The specific analysis is as follows: ThinkWecha

PHP WeChat public platform development class example_PHP tutorialPHP WeChat public platform development class example_PHP tutorial

13Jul2016

PHP WeChat public platform development class example. PHP WeChat public platform development class example ThinkWechat.php class file is as follows: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 4

WeChat public platform development: general interface descriptionWeChat public platform development: general interface description

27Feb2017

The "Common APIs" mentioned here are necessary verification functions for using a series of advanced functions of WeChat public accounts (applied to development mode).

WeChat public platform development: advanced interface descriptionWeChat public platform development: advanced interface description

27Feb2017

The advanced interface mentioned here refers to the advanced functions opened for certified service accounts.

WeChat public platform message interface development and enable interfaceWeChat public platform message interface development and enable interface

21Feb2017

In this WeChat public platform development tutorial, we assume that you already have the basics of PHP language program, MySQL database, computer network communication, and HTTP/XML/CSS/JS.

WeChat public platform interface application and development documentsWeChat public platform interface application and development documents

29Jul2016

:WeChat public platform interface application and development documents: http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login WeChat public platform test interface application http://mp.weixin.qq .com/wiki/home/index.html WeChat Public Platform Developer Documentation

See all articles