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

ActiveLibrary[API Development](/categories/api)

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

微信小程序开发 for laravel

v2.4.2(5y ago)123MITPHPPHP &gt;=7.0

Since Apr 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lamplife/wxapp)[ Packagist](https://packagist.org/packages/firstphp/wxapp)[ Docs](http://www.firstphp.com/)[ RSS](/packages/firstphp-wxapp/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)DependenciesVersions (6)Used By (0)

wxapp
=====

[](#wxapp)

微信小程序开发

安装扩展:

```
composer require firstphp/wxapp

```

注册服务:

```
Firstphp\Wxapp\Providers\WxappServiceProvider::class

```

发布配置:

```
php artisan vendor:publish

```

数据表迁移:

```
php artisan migrate

```

编辑.env配置：

```
COMPONENT_ID=1
WECHAT_APPID=wxda93db123lafdu83d
WECHAT_APPSECRET=87afeef9df90b74g4a8l9ca8d67b5742
WECHAT_TOKEN=b5pxmw4bglFeh7Cd
WECHAT_AES_KEY=mWm1DkAVBAZD2L5rs3QWKeoWa62wLumjqCXG9HifLdM

```

示例代码：

```
use Firstphp\Wxapp\Facades\WxappFactory;

......

$code = isset($this->params['code']) && $this->params['code'] ? trim($this->params['code']) : '';
if (!$code) {
    return $this->responseJson(400, '参数错误');
}

$res = WxappFactory::authLogin($code);
if (isset($res['errcode'])) {
    return $this->responseJson($res['errcode'], $res['errmsg']);
}

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

4

Last Release

2134d ago

Major Versions

1.0 → 2.3.22018-12-18

### 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

api

### Embed Badge

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

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

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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