PHPackages                             socialiteproviders\_wxmini/weixin\_mini - 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. socialiteproviders\_wxmini/weixin\_mini

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

socialiteproviders\_wxmini/weixin\_mini
=======================================

Weixin Mini OAuth2 Provider for Laravel Socialite

14PHP

Since Jan 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vinwang/WeixinMini)[ Packagist](https://packagist.org/packages/socialiteproviders_wxmini/weixin_mini)[ RSS](/packages/socialiteproviders-wxmini-weixin-mini/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Weixin
======

[](#weixin)

```
composer require socialiteproviders-mini/weixin_mini
```

Installation &amp; Basic Usage
------------------------------

[](#installation--basic-usage)

Please see the [Base Installation Guide](https://socialiteproviders.com/usage/), then follow the provider specific instructions below.

### Add configuration to `config/services.php`

[](#add-configuration-to-configservicesphp)

```
'weixin' => [
  'client_id' => env('WEIXINMINI_CLIENT_ID'),
  'client_secret' => env('WEIXINMINI_CLIENT_SECRET'),
  'redirect' => env('WEIXINMINI_REDIRECT_URI')
],
```

### Add provider event listener

[](#add-provider-event-listener)

Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.

```
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        'SocialiteProvidersMini\\WeixinMini\\WeixinMiniExtendSocialite@handle',
    ],
];
```

### Usage

[](#usage)

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

```
return Socialite::driver('weixin_mini')->redirect();
```

### Returned User fields

[](#returned-user-fields)

- `id`
- `unionid`
- `nickname`
- `avatar`

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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/9b2d85a114630c0a89efc92cfe38a62f0dca03e7a7c9ebc594ecb707f57fbd15?d=identicon)[wanglu\_ps](/maintainers/wanglu_ps)

---

Top Contributors

[![vinwang](https://avatars.githubusercontent.com/u/1687353?v=4)](https://github.com/vinwang "vinwang (8 commits)")

### Embed Badge

![Health badge](/badges/socialiteproviders-wxmini-weixin-mini/health.svg)

```
[![Health](https://phpackages.com/badges/socialiteproviders-wxmini-weixin-mini/health.svg)](https://phpackages.com/packages/socialiteproviders-wxmini-weixin-mini)
```

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