# overtrue/laravel-wechat

微信 SDK for Laravel, 基于 overtrue/wechat

Repository: https://github.com/overtrue/laravel-wechat
Canonical: https://ross.abutalabs.com/products/laravel-wechat
Language: PHP
License: MIT
License Family: permissive
Topics: wechat, wechat-sdk, php, laravel-wechat
Last push: 2026-05-07T13:51:06+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 81, release rhythm 43, longevity 100
- inputs: {"age_days": 4185, "days_push": 118, "days_rel": 167, "gap_med": 387, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2896, forks 499 (observed 2026-08-28T04:07:28.708514+00:00)

## What it is
A Laravel integration package wrapping the EasyWeChat SDK, providing WeChat (Weixin) capabilities such as official account message handling, OAuth login, and multi-account configuration. It exposes service containers, facades, and an OAuth authenticate middleware for Laravel applications.

## Use cases
- integrate WeChat official account messaging into a Laravel app
- add WeChat OAuth login to Laravel routes
- handle WeChat server message callbacks with a controller
- manage multiple WeChat accounts in one Laravel project
- mock WeChat OAuth users during local development
- build a WeChat mini program backend in Laravel

## When to choose
- you are building a Laravel (>=8) application that needs WeChat integration
- you want an idiomatic Laravel wrapper with facades, config publishing, and middleware around EasyWeChat
- you need multi-account WeChat support with OAuth middleware

## When to avoid
- your project does not use Laravel or Lumen (use w7corp/easywechat directly)
- you need a framework-agnostic WeChat SDK
- you rely on Lumen with version 7.x, which no longer supports it

## Facets
- artifact type: library
- maturity: active
- function: sdk, auth, middleware, http-server, api-framework
- domain: apis, web-development, backend, messaging-platforms, developer-tools
- platform: php, self-hosted
- tags: wechat, easywechat, laravel-package, oauth-middleware, multi-account, official-account, mini-program, chinese-platforms, laravel, web-server

## Member repositories
- overtrue/laravel-wechat (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:28.708514+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:35:15.763380+00:00, confidence not recorded.
  - readme: https://github.com/overtrue/laravel-wechat (fetched 2026-08-28T04:07:28.708514+00:00, sha 90ac7e65e948)
- Data as of 2026-08-30T08:39:29.467469+00:00.
