PHPackages                             firstphp/firstphp-wxapp - 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/firstphp-wxapp

ActiveLibrary[API Development](/categories/api)

firstphp/firstphp-wxapp
=======================

微信小程序开发组件 for hyperf

v1.73(4y ago)31062MITPHPPHP &gt;=7.2

Since Sep 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lamplife/firstphp-wxapp)[ Packagist](https://packagist.org/packages/firstphp/firstphp-wxapp)[ RSS](/packages/firstphp-firstphp-wxapp/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (10)DependenciesVersions (27)Used By (0)

微信小程序开发组件 for hyperf
--------------------

[](#微信小程序开发组件-for-hyperf)

### 安装组件:

[](#安装组件)

> composer require firstphp/firstphp-wxapp

### 发布配置:

[](#发布配置)

> php bin/hyperf.php vendor:publish firstphp/firstphp-wxapp

### 编辑.env配置：

[](#编辑env配置)

```
WXAPP_APPID=wxda93db123lafdu83d
WXAPP_APPSECRET=87afeef9df90b74g4a8l9ca8d67b5742
WXAPP_KEY=mWm1DkAVBAZD2L5rs3QWKeoWa62wLumjqCXG9HifLdM
WXAPP_URL=https://api.weixin.qq.com/
```

### 示例代码：

[](#示例代码)

```
use Firstphp\FirstphpWxapp\WxappInterface;

......

/**
 * @Inject
 * @var WxappInterface
 */
protected $wxappInterface;

public function test() {
    $res = $this->wxappInterface->getAccessToken();
    var_dump($res);
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Recently: every ~122 days

Total

26

Last Release

1529d 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 (2 commits)")

---

Tags

apihyperf

### Embed Badge

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

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

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)[kakuilan/hyperf-apihelper

hyperf api swagger helper

443.0k](/packages/kakuilan-hyperf-apihelper)

PHPackages © 2026

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