PHPackages                             firstphp/fpwechat - 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. [API Development](/categories/api)
4. /
5. firstphp/fpwechat

ActiveLibrary[API Development](/categories/api)

firstphp/fpwechat
=================

微信公众号开发组件 for laravel

1.0.6(5y ago)09MITPHP

Since Jun 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lamplife/firstphp-wechat)[ Packagist](https://packagist.org/packages/firstphp/fpwechat)[ Docs](http://www.firstphp.com/)[ RSS](/packages/firstphp-fpwechat/feed)WikiDiscussions master Synced today

READMEChangelog (7)DependenciesVersions (8)Used By (0)

firstphp-wechat
===============

[](#firstphp-wechat)

微信公众号开发

安装扩展:

```
composer composer require firstphp/fpwechat

```

注册服务:

```
Firstphp\Fpwechat\Providers\WechatServiceProvider::class

```

发布配置:

```
php artisan vendor:publish

```

数据表迁移:

```
php artisan migrate

```

编辑.env配置：

```
WECHAT_APPID=wxf9958132f63c2902
WECHAT_APPSECRET=67031cef936714f334b9e69a5c987977
WECHAT_TOKEN=hedFqtWa7aSbiU3Zfk9WMjhIuNkjFnI2
WECHAT_AES_KEY=8xArRPLP8wdMdd9HSa1gFfmYBrSFueeSnq4E8nmzZMf

```

示例代码：

```
use Firstphp\Fpwechat\Facades\WechatFactory;

......

$res = WechatFactory::getAccessToken();
print_r($res);

```

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Recently: every ~33 days

Total

7

Last Release

2119d ago

### Community

Maintainers

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

---

Top Contributors

[![lamplife](https://avatars.githubusercontent.com/u/12744359?v=4)](https://github.com/lamplife "lamplife (1 commits)")

### Embed Badge

![Health badge](/badges/firstphp-fpwechat/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)[pimax/fb-messenger-php

Facebook Messenger Bot PHP API

313188.5k2](/packages/pimax-fb-messenger-php)

PHPackages © 2026

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