Git project recommendation | another PHP WeChat public platform development kit-php Tutorial

Source: Internet
Author: User
Git project recommendation | another PHP public platform development kit, Easy WeChat

It may be the most elegant public Platform SDK.

The enterprise ID is not supported. why? The API is too messy, so I am afraid I will be exhausted...

QQ group used by SDK: 319502940

QQ group for developers: 9179779

Features
  • Naming is not so messy;
  • Hide details that developers do not need to pay attention;
  • The method is more elegant, so you don't have to study the usage of strange method names or class names;
  • Custom cache mode;
  • Compliance with the DSRs standard, you can easily integrate with your framework;
  • Highly abstract message classes, eliminating the pain of json and xml;
  • Detailed Debug logs make all interactions clear at a glance;
Install

Environment requirements: PHP> = 5.5.9

  1. Use composer

    composer require "overtrue/wechat:~3.0" -vvv
Use

Basic usage (take the server as an example ):

 True, 'app _ id' => 'wx3cf0f39249eb0e60', 'secret' => 'f1c242f4f28f735d4687abb469072a29', 'token' => 'easychat ', 'log' => ['level' => 'debug', 'file' => '/tmp/easywechat. log',], //...]; $ app = new Application ($ options); $ server = $ app-> server; $ user = $ app-> user; $ server-> setMessageHandler (function ($ message) use ($ user) {$ fromUser = $ user-> get ($ message-> FromUserName); return "{$ fromUser-> nickname} Hello! Welcome to overtrue! ";}); $ Server-> serve ()-> send ();

For more information, see http://easywechat.org /.

Document

Http://easywechat.org/

We strongly recommend that you read the document and use this SDK again.

Framework integration

Laravel 5 expansion package: overtrue/laravel-wechat

Contribute code

Contribution guide

License

MIT

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.