PHPackages                             sfsoft/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. sfsoft/wechat

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

sfsoft/wechat
=============

wechat helper

1(6y ago)1351MITPHPPHP &gt;=5.3

Since Apr 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/chinazzkk/wechat)[ Packagist](https://packagist.org/packages/sfsoft/wechat)[ RSS](/packages/sfsoft-wechat/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (1)Versions (11)Used By (0)

#### composer 安装

[](#composer-安装)

```
composer require sfsoft/wechat

```

#### wechat helper

[](#wechat-helper)

```
这是一个微信公众平台基础功能Lib库。
用于微信公众号获取JS授权以及 open_id 获取。

```

#### 获取 OPEN\_ID

[](#获取-open_id)

```
//获取 OPEN_ID
$wechat = new \sfsoft\wechat\base('app_id', 'app_secret');
$detail = $wechat->getOpenID();

```

#### 获取用户详细信息并存储到数据库

[](#获取用户详细信息并存储到数据库)

```
$wechat = new \sfsoft\wechat\base('app_id', 'app_secret');
$wechat->dataBaseConfig =  array(
    'driver' => 'mysql',
    'host' => 'localhost',
    'port' => '3306',
    'database' => 'wechat_manager',
    'username' => 'demo',
    'password' => 'demo',
    'charset' => 'utf8mb4',
    'collation' => 'utf8mb4_bin',
    'prefix' => '',
);
$detail = $wechat->getUserDetail();

```

#### 获取 JS 签名包

[](#获取-js-签名包)

```
$wechat = new \sfsoft\wechat\jsapi('app_id', 'app_secret');
$detail = $wechat->getSignPackage('http://www.example.com');

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~49 days

Recently: every ~98 days

Total

10

Last Release

2513d ago

PHP version history (2 changes)0.1PHP &gt;=5.6

0.5PHP &gt;=5.3

### Community

Maintainers

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

---

Top Contributors

[![chinazzkk](https://avatars.githubusercontent.com/u/8172413?v=4)](https://github.com/chinazzkk "chinazzkk (24 commits)")

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[efureev/laravel-trees

Multi-Tree structures for Laravel

14253.3k4](/packages/efureev-laravel-trees)[illuminatech/balance

Provides support for Balance accounting system based on debit and credit principle

16137.4k](/packages/illuminatech-balance)[zonneplan/laravel-module-loader

Module loader for Laravel

24118.4k](/packages/zonneplan-laravel-module-loader)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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