PHPackages                             socialiteproviders/weixin-web - 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/weixin-web

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

socialiteproviders/weixin-web
=============================

Weixin-Web OAuth2 Provider for Laravel Socialite

4.1.0(5y ago)30141.6k↓47.8%122MITPHPPHP ^7.2 || ^8.0

Since Jul 13Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/SocialiteProviders/Weixin-Web)[ Packagist](https://packagist.org/packages/socialiteproviders/weixin-web)[ RSS](/packages/socialiteproviders-weixin-web/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (1)Versions (12)Used By (2)

WeixinWeb
=========

[](#weixinweb)

```
composer require socialiteproviders/weixin-web
```

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)

```
'weixinweb' => [
  'client_id' => env('WEIXINWEB_CLIENT_ID'),
  'client_secret' => env('WEIXINWEB_CLIENT_SECRET'),
  'redirect' => env('WEIXINWEB_REDIRECT_URI')
],
```

### Add provider event listener

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

#### Laravel 11+

[](#laravel-11)

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

- Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
    $event->extendSocialite('weixinweb', \SocialiteProviders\WeixinWeb\Provider::class);
});
```

Laravel 10 or below 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
        \SocialiteProviders\WeixinWeb\WeixinWebExtendSocialite::class.'@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('weixinweb')->redirect();
```

### Returned User fields

[](#returned-user-fields)

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

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance52

Moderate activity, may be stable

Popularity42

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 51.6% 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 ~196 days

Recently: every ~351 days

Total

11

Last Release

2040d ago

Major Versions

1.0.x-dev → v2.0.02016-03-30

v2.0.3 → v3.0.02017-01-25

v3.1.0 → 4.0.02020-10-25

PHP version history (4 changes)v1.0.0PHP &gt;=5.5.0

v2.0.0PHP ^5.6 || ^7.0

4.0.0PHP ^7.2

4.1.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23558090?v=4)[Miguel Piedrafita](/maintainers/m1guelpf)[@m1guelpf](https://github.com/m1guelpf)

---

Top Contributors

[![lucasmichot](https://avatars.githubusercontent.com/u/513603?v=4)](https://github.com/lucasmichot "lucasmichot (16 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (9 commits)")[![m1guelpf](https://avatars.githubusercontent.com/u/23558090?v=4)](https://github.com/m1guelpf "m1guelpf (1 commits)")[![maks-oleksyuk](https://avatars.githubusercontent.com/u/90793591?v=4)](https://github.com/maks-oleksyuk "maks-oleksyuk (1 commits)")[![Max13](https://avatars.githubusercontent.com/u/531249?v=4)](https://github.com/Max13 "Max13 (1 commits)")[![angelofan](https://avatars.githubusercontent.com/u/20255750?v=4)](https://github.com/angelofan "angelofan (1 commits)")[![saundefined](https://avatars.githubusercontent.com/u/4685504?v=4)](https://github.com/saundefined "saundefined (1 commits)")[![Jimbolino](https://avatars.githubusercontent.com/u/5860587?v=4)](https://github.com/Jimbolino "Jimbolino (1 commits)")

---

Tags

laraveloauthoauth1oauth2social-mediasocialitesocialite-providers

### Embed Badge

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

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

###  Alternatives

[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

629.5M15](/packages/socialiteproviders-apple)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

347.3M25](/packages/socialiteproviders-microsoft)[socialiteproviders/microsoft-azure

Microsoft Azure OAuth2 Provider for Laravel Socialite

597.2M27](/packages/socialiteproviders-microsoft-azure)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

402.0M5](/packages/socialiteproviders-instagram)[socialiteproviders/saml2

SAML2 Service Provider for Laravel Socialite

172.6M5](/packages/socialiteproviders-saml2)[socialiteproviders/discord

Discord OAuth2 Provider for Laravel Socialite

432.4M22](/packages/socialiteproviders-discord)

PHPackages © 2026

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