PHPackages                             quepq/wechat-applet-login - 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. quepq/wechat-applet-login

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

quepq/wechat-applet-login
=========================

A WeChat applet plugins for Laravel

14PHP

Since Sep 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/quepq/wxxcxlogin)[ Packagist](https://packagist.org/packages/quepq/wechat-applet-login)[ RSS](/packages/quepq-wechat-applet-login/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

wxxcxlogin
==========

[](#wxxcxlogin)

微信小程序登陆

前段时间刚好做了一个小程序的项目，用的框架是laravel

想想看，自己还没有写过composer的依赖包，刚好借这个机会试一下，功能比较简单，但是也刚好熟悉一下compoer的依赖包的书写规范，以及如何发布。

注册服务提供者到 Laravel中 具体位置：/config/app.php 中的 providers 数组:

quepq\\wxxcx\\WxxcxServiceProvider::class,

发布配置文件:

php artisan vendor:publish --tag=wxxcx

具体使用

use quepq\\wxxcx\\wxxcx;

class wxxcxController extends Controller { protected $wxxcx;

```
function __construct(Wxxcx $wxxcx)
{
    $this->wxxcx = $wxxcx;
}

public function getWxUserInfo()
{
    //code 在小程序端使用 wx.login 获取
    $code = request('code', '');
    //encryptedData 和 iv 在小程序端使用 wx.getUserInfo 获取
    $encryptedData = request('encryptedData', '');
    $iv = request('iv', '');

    //根据 code 获取用户 session_key 等信息, 返回用户openid 和 session_key
    $userInfo = $this->wxxcx->getLoginInfo($code);

    //获取解密后的用户信息
    return $this->wxxcx->getUserInfo($encryptedData, $iv);
}

```

}

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/10f3b9ffe970424e476a9acac3cf64f4dc86e63a7361ea8a1c387570cfbbdfe9?d=identicon)[quepq](/maintainers/quepq)

---

Top Contributors

[![quepq](https://avatars.githubusercontent.com/u/18549300?v=4)](https://github.com/quepq "quepq (7 commits)")

### Embed Badge

![Health badge](/badges/quepq-wechat-applet-login/health.svg)

```
[![Health](https://phpackages.com/badges/quepq-wechat-applet-login/health.svg)](https://phpackages.com/packages/quepq-wechat-applet-login)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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