PHPackages                             vestin/weixin - 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. vestin/weixin

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

vestin/weixin
=============

weixin libray

0.0.1(10y ago)015MITPHPPHP &gt;=5.3.3

Since Jan 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Vestin/weixin)[ Packagist](https://packagist.org/packages/vestin/weixin)[ Docs](https://github.com/Vestin/weixin)[ RSS](/packages/vestin-weixin/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

weixin
======

[](#weixin)

usage
-----

[](#usage)

### config

[](#config)

example

```
$config = [
	'access_token_key_name'	=>'weixin_access_token',
	'jsapi_ticket_key_name'	=>'weixin_jsapi_ticket',
	'appid'		=>'wx1dcb74f95d60041f',
	'secret'	=>'2ba6350b18c47cfc23e89b3dbcaed7ca',
	'scope'		=>'snsapi_userinfo',
];

```

### sign package

[](#sign-package)

```
    $Weixin = new Weixin($config,$redis);
    $signPackage = $Weixin->getSignPackage();

```

### getUserAccessToken

[](#getuseraccesstoken)

//client side get the `code``$user_access_token = $Weixin->getUserAccessToken($code)`

### getUserInfo

[](#getuserinfo)

`$Weixin->getUserInfo($user_access_token,$openid,$user_refresh_token)`

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3814d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc645423526b4d789381df1b6052ba2043b3b7960c94ae1166cf2763415ec497?d=identicon)[Vestin](/maintainers/Vestin)

---

Top Contributors

[![Vestin](https://avatars.githubusercontent.com/u/13653162?v=4)](https://github.com/Vestin "Vestin (6 commits)")

### Embed Badge

![Health badge](/badges/vestin-weixin/health.svg)

```
[![Health](https://phpackages.com/badges/vestin-weixin/health.svg)](https://phpackages.com/packages/vestin-weixin)
```

###  Alternatives

[jcchavezs/cmb2-conditionals

CMB2 Conditionals is a plugin for CMB2 which allows developers to relate fields so one of them could only appear when one other have an specific value or when is not empty.

928.2k](/packages/jcchavezs-cmb2-conditionals)

PHPackages © 2026

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