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(7y ago)1351MITPHPPHP &gt;=5.3

Since Apr 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/chinazzkk/wechat)[ Packagist](https://packagist.org/packages/sfsoft/wechat)[ RSS](/packages/sfsoft-wechat/feed)WikiDiscussions master Synced 3w 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 52% 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

2561d ago

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

0.5PHP &gt;=5.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/290405?v=4)[zeki](/maintainers/ZEKI)[@zeki](https://github.com/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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M342](/packages/psalm-plugin-laravel)[spatie/laravel-settings

Store your application settings

1.5k7.3M142](/packages/spatie-laravel-settings)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

198321.1k](/packages/fumeapp-modeltyper)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[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)
