finds.dev← search

// the find

overtrue/laravel-wechat

★ 2,898 · PHP · MIT · updated May 2026

微信 SDK for Laravel, 基于 overtrue/wechat

A Laravel wrapper around the EasyWeChat SDK that integrates WeChat's official account, mini-program, and open platform APIs into a Laravel app via service provider and facade. Aimed at PHP developers building products for the Chinese market where WeChat is the primary social and payment layer. Not useful outside that context.

Multi-account support is baked in at the config level — you can run separate WeChat accounts per tenant without any ceremony. The OAuth middleware approach is clean: routes get decorated and the authorized user lands in session, no boilerplate in controllers. Open platform server event handling is trait-based, which keeps controllers thin. The mock-auth pattern for local development (write a fake user to session before the middleware fires) is a practical workaround for WeChat's requirement that callbacks go to a real server.

This is a thin adapter — nearly all logic lives in the upstream w7corp/easywechat package, so issues and bugs there are your problem too. Documentation is almost entirely in Chinese, which is fine for the target audience but means English-speaking developers on a mixed team will struggle. CSRF exclusion is done by exception-listing routes in middleware, which is easy to forget when adding new webhook endpoints and silently breaks things. Lumen was dropped in v7 with no migration path noted.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →