Download the PHP package techleeone/wechat-api without Composer

On this page you can find all versions of the php package techleeone/wechat-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wechat-api

wechat-api 微信公众平台接口

微信公众平台技术文档

安装

使用

响应微信发送的Token验证

此处根据来自微信的请求类型,如为GET请求,会自动验证签名

若确认此次GET请求来自微信服务器,原样返回echostr参数内容,则接入生效,否则接入失败。

接收普通消息&接收事件推送

此处根据来自微信的请求类型,如为POST请求,则自动接收来自微信的普通消息或事件推送

返回类型为:

TechOne\WechatApi\Messages\EventMessage

TechOne\WechatApi\Messages\ImageMessage

TechOne\WechatApi\Messages\LinkMessage

TechOne\WechatApi\Messages\LocationMessage

TechOne\WechatApi\Messages\ShortVideoMessage

TechOne\WechatApi\Messages\TextMessage

TechOne\WechatApi\Messages\VideoMessage

TechOne\WechatApi\Messages\VoiceMessage

被动回复用户消息

回复文本消息

如果是收到的文本消息,且回复文本消息,则可在收到的消息上直接回复

回复其他类型的消息,同理。

如果回复的消息类型和收到的消息类型不同,则需要初始化新的消息实例

回复图文消息

回复图片消息

回复语音消息

回复视频消息

回复图文消息

微信网页授权

如果用户在微信客户端中访问第三方网页,公众号可以通过微信网页授权机制,来获取用户基本信息,进而实现业务逻辑。

微信网页授权

菜单管理

自定义菜单创建接口

自定义菜单查询接口

自定义菜单删除接口

用户管理

获取用户列表

获取用户基本信息(UnionID机制)

批量获取用户基本信息

设置用户备注名

用户标签管理

创建标签

获取公众号已创建的标签

编辑标签

删除标签

获取标签下粉丝列表

批量为用户打标签

批量为用户取消标签

获取用户身上的标签列表


All versions of wechat-api with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
nategood/httpful Version 0.2.*
monolog/monolog Version ^1.23
techleeone/oauth2-client Version ^1.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package techleeone/wechat-api contains the following files

Loading the files please wait ....