<?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
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
13 Jul 2016
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
13 Jul 2016
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
27 Feb 2017
The "Common APIs" mentioned here are necessary verification functions for using a series of advanced functions of WeChat public accounts (applied to development mode).
27 Feb 2017
The advanced interface mentioned here refers to the advanced functions opened for certified service accounts.
21 Feb 2017
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.
29 Jul 2016
: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
Hot Tools
PHP library for dependency injection containers
PHP library for dependency injection containers
A collection of 50 excellent classic PHP algorithms
Classic PHP algorithm, learn excellent ideas and expand your thinking
Small PHP library for optimizing images
Small PHP library for optimizing images