PHPackages                             fcode/wxshare - 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. fcode/wxshare

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

fcode/wxshare
=============

微信分享服务端生成分享所需的签名

1.4(7y ago)1853MITPHP

Since Mar 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/farmercode/WxShare)[ Packagist](https://packagist.org/packages/fcode/wxshare)[ RSS](/packages/fcode-wxshare/feed)WikiDiscussions master Synced 3w ago

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

WxShare
=======

[](#wxshare)

微信相关工具类库，目前包含的功能有微信登录授权，获取用户信息(亦可用来检查用户是否关注公众账号)，微信分享所需的签名。

composer安装
----------

[](#composer安装)

```
composer require fcode/wxshare
#安装dev版本
composer require "fcode/wxshare:dev-master"

```

配置文件
----

[](#配置文件)

根目录下面的`config.php`是配置文件，里面目前支持3个参数。

#### app\_id

[](#app_id)

微信公众账号的APP ID。

#### app\_secret

[](#app_secret)

微信公众账号密钥。

#### redirect

[](#redirect)

微信用户授权登录以后重定向地址,如果此项不设置，默认会把当前页面作为重定向地址。

使用
--

[](#使用)

请查看example目录下面的参考例子。 `wechat_login.php`是用户授权登录例子。 `wechat_share.php`是微信分享例子。 `wechat_user_info.php`是根据openid来获取用户信息，或者判断用户是否关注公众账号。

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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 ~31 days

Total

5

Last Release

2893d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11289531?v=4)[王昶鈞](/maintainers/wangchangchun)[@wangchangchun](https://github.com/wangchangchun)

---

Top Contributors

[![farmercode](https://avatars.githubusercontent.com/u/7553523?v=4)](https://github.com/farmercode "farmercode (18 commits)")

### Embed Badge

![Health badge](/badges/fcode-wxshare/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)

PHPackages © 2026

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