PHPackages                             raysoft/wxauth-client - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. raysoft/wxauth-client

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

raysoft/wxauth-client
=====================

通过认证的公众号实现网页扫描登陆(客户端)

1.0.2(9y ago)018MITPHP

Since Mar 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jesonray/wxauth-client)[ Packagist](https://packagist.org/packages/raysoft/wxauth-client)[ RSS](/packages/raysoft-wxauth-client/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

wxauth-client
=============

[](#wxauth-client)

通过认证的公众号实现网页扫描登陆(客户端)

此为Yii2模块, 需要运行在Yii2框架下

使用场景
----

[](#使用场景)

1. 有认证过的微信公众号
2. 没有开发者账号(正常使用微信扫描登陆要申请开发者账号, 300认证费用, 每个网站都要提交资料, 审核, 很麻烦)
3. WEB端希望通过扫描登陆

安装使用
----

[](#安装使用)

1、通过composer安装: `composer require raysoft/wxauth-client`

2、配置模块:

```
'modules' => [
    ...
    'wxlogin' => [ // 配置模块
        'class' => 'raysoft\WxAuthClient\Module'
    ]
    ...
  ]

```

3、添加配置信息(params-local.php):

```
'WXAUTH' => [
    'client' => [
        'key' => '服务端wxlogin_app表中的key',
        'secret' => '服务端wxlogin_app表中的secret',
        'server' => '服务端域名',
        'server_ip' => '服务端域名对应的Ip(非必填, 但是填了后每次通讯不会再解析域名, 增加速度)',
        'server_scheme' => 'http', // 协议, http or https
        'server_path' => '/wxauth/api', // 服务端API接口的访问路径, "wxauth"为服务端配置模块名, 根据自己配置的情况修改

        'session_key' => 'WXAUTH_DATA', // SESSION名, 登陆成功后, 用户信息会保存在此session名下
        'module_name' => 'wxlogin',     // 上面配置的模块名
        'form_action' => ['site/wxlogin']   // 扫码登陆后跳转到哪里
    ]
],
'WECHAT' => [
    'app_id'  => '微信公众号的app id',
    'secret'  => '微信公招的secret'
]

```

4、在登陆页面试图适合的位置添加以下代码生成二维码:

``

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

3434d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/181444238?v=4)[jesonray](/maintainers/jesonray)[@jesonray](https://github.com/jesonray)

---

Top Contributors

[![rayeesoft](https://avatars.githubusercontent.com/u/4216480?v=4)](https://github.com/rayeesoft "rayeesoft (5 commits)")

### Embed Badge

![Health badge](/badges/raysoft-wxauth-client/health.svg)

```
[![Health](https://phpackages.com/badges/raysoft-wxauth-client/health.svg)](https://phpackages.com/packages/raysoft-wxauth-client)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.3k](/packages/craftcms-cms)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k51](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k19](/packages/tempest-framework)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

293.1k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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