PHPackages                             yusureabc/xiaomisocialite - 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. yusureabc/xiaomisocialite

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

yusureabc/xiaomisocialite
=========================

Xiaomi OAuth2 Provider for Laravel Socialite

1.0.1(9y ago)021MITPHPPHP ^5.6 || ^7.0

Since Jul 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yusureabc/xiaomisocialite)[ Packagist](https://packagist.org/packages/yusureabc/xiaomisocialite)[ RSS](/packages/yusureabc-xiaomisocialite/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Xiaomi OAuth2 Provider for Laravel Socialite
============================================

[](#xiaomi-oauth2-provider-for-laravel-socialite)

1.安装

```
composer require yusureabc/xiaomisocialite

```

2.添加 Service Provider **文件 config/app.php**

```
'providers' => [
    // Laravel\Socialite\SocialiteServiceProvider::class,
    SocialiteProviders\Manager\ServiceProvider::class,
],
```

3.添加 Facades Aliase **文件 config/app.php**

```
'aliases' => [
    'Socialite' => Laravel\Socialite\Facades\Socialite::class,
],
```

4.添加事件处理器 **文件 app/Providers/EventServiceProvider.php**

```
protected $listen = [
    'SocialiteProviders\Manager\SocialiteWasCalled' => [
        'Yusureabc\XiaomiSocialite\XiaomiExtendSocialite@handle',
    ],
];
```

5.配置 **文件 .env**

```
// XiaoMi oauth
XIAOMI_KEY=2882303761517596140
XIAOMI_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
XIAOMI_REDIRECT_URI=http://xxx.xxx.com/auth/callback?driver=xiaomi
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3322d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11594145?v=4)[Scott Yu](/maintainers/yusureabc)[@yusureabc](https://github.com/yusureabc)

### Embed Badge

![Health badge](/badges/yusureabc-xiaomisocialite/health.svg)

```
[![Health](https://phpackages.com/badges/yusureabc-xiaomisocialite/health.svg)](https://phpackages.com/packages/yusureabc-xiaomisocialite)
```

###  Alternatives

[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

357.9M33](/packages/socialiteproviders-microsoft)[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

629.9M21](/packages/socialiteproviders-apple)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

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

SAML2 Service Provider for Laravel Socialite

172.7M8](/packages/socialiteproviders-saml2)[kovah/laravel-socialite-oidc

OpenID Connect OAuth2 Provider for Laravel Socialite

24164.4k](/packages/kovah-laravel-socialite-oidc)[socialiteproviders/steam

Steam OpenID Provider for Laravel Socialite

21625.9k2](/packages/socialiteproviders-steam)

PHPackages © 2026

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