PHPackages                             honray/tp5-wechat - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. honray/tp5-wechat

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

honray/tp5-wechat
=================

wechat package for thinkphp5

5193PHP

Since Jan 6Pushed 9y agoCompare

[ Source](https://github.com/honraytech/honray-wechat)[ Packagist](https://packagist.org/packages/honray/tp5-wechat)[ RSS](/packages/honray-tp5-wechat/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

honray-wechat
=============

[](#honray-wechat)

thinkphp5 微信开发工具类库

安装
--

[](#安装)

> composer require honray/tp5-wechat

- getWechatUrl($appId, $appSecret, $url, $type = 'snsapi\_userinfo')
- \[get\_wechat\_url 获取微信授权跳转url\]
- @linchuangbin
- @DateTime 2017-01-05T17:22:06+0800
- @param \[string\] $appid \[微信配置\]
- @param \[string\] $appsecret \[微信配置\]
- @param \[string\] $url \[回调url\]
- @param \[string\] $type \[授权方式\]
- @return \[string\] \[跳转url\]
- getWechatToken($appId, $appSecret, $code)
- \[get\_wechat\_token 通过code换取网页授权access\_token\]
- @linchuangbin
- @DateTime 2017-01-05T17:22:06+0800
- @param \[string\] $appid \[微信配置\]
- @param \[string\] $appsecret \[微信配置\]
- @param \[string\] $code \[通过授权获取的code参数\]
- @return \[array\] \[token，openid等信息\]
- getWechatUserInfo($appId, $appSecret, $token, $openid)
- \[get\_wechat\_userInfo 获取微信授权用户基本信息\]
- @linchuangbin
- @DateTime 2017-01-05T17:28:11+0800
- @param \[string\] $appid \[微信配置\]
- @param \[string\] $appsecret \[微信配置\]
- @param \[string\] $token \[token\]
- @param \[string\] $openid \[用户openid\]
- @return \[array\] \[用户信息\]
- getWechatSignPackage($appId, $appSecret)
- \[get\_wechat\_signPackage 获取jssdk配置\]
- @linchuangbin
- @DateTime 2017-01-05T21:07:21+0800
- @param \[type\] $appId \[微信配置\]
- @param \[type\] $appSecret \[微信配置\]
- @return \[array\] \[配置数组\]
- wechatOderPush($appId, $appSecret, $openid, $template\_id, $data, $topcolor = '#7B68EE', $url = '')
- \[wechatOderPush 微信模板消息推送\]
- @linchuangbin
- @DateTime 2017-01-06T11:22:40+0800
- @param \[string\] $appId \[微信配置\]
- @param \[string\] $appSecret \[微信配置\]
- @param \[string\] $openid \[用户openid\]
- @param \[string\] $template\_id \[模板id\]
- @param \[string\] $data \[需要发送的消息\]
- @param \[string\] $topcolor \[模板标题颜色\]
- @param \[string\] $url \[模板跳转的url\]
- @return \[bool\] \[返回信息\]
- getWechatPicture($appId, $appSecret, $media\_id)
- \[getWechatPicture 获取微信服务器图片\]
- @linchuangbin
- @DateTime 2017-01-06T11:22:40+0800
- @param \[string\] $appId \[微信配置\]
- @param \[string\] $appSecret \[微信配置\]
- @param \[string\] $media\_id \[要获取的素材的media\_id\]
- @return \[string\] \[返回路径\]

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/22bf6ed440efe7bb893fe069ae45a3d99da2c135eb41b450225305b7a33b2cf7?d=identicon)[honraytech](/maintainers/honraytech)

---

Top Contributors

[![honraytech](https://avatars.githubusercontent.com/u/24616643?v=4)](https://github.com/honraytech "honraytech (13 commits)")

### Embed Badge

![Health badge](/badges/honray-tp5-wechat/health.svg)

```
[![Health](https://phpackages.com/badges/honray-tp5-wechat/health.svg)](https://phpackages.com/packages/honray-tp5-wechat)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
