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 1w 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 68% 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

2848d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b50d110b9ec9cf18e511bf5dfd4bd3b2e905c8f42e537ab0faacc4349db2f6d4?d=identicon)[wangchangchun](/maintainers/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

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[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)
