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(8y ago)021MITPHPPHP ^5.6 || ^7.0

Since Jul 11Pushed 8y ago1 watchersCompare

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

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 37% 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

3226d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/be520f173fe0d672d8d1351ba9ac08c03e0d2ce2083dd03a738a78b220b4f466?d=identicon)[yusureabc](/maintainers/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

326.1M13](/packages/socialiteproviders-microsoft)[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

618.4M8](/packages/socialiteproviders-apple)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

421.9M5](/packages/socialiteproviders-instagram)[socialiteproviders/microsoft-azure

Microsoft Azure OAuth2 Provider for Laravel Socialite

556.0M19](/packages/socialiteproviders-microsoft-azure)[socialiteproviders/laravelpassport

LaravelPassport OAuth2 Provider for Laravel Socialite

621.3M7](/packages/socialiteproviders-laravelpassport)[socialiteproviders/discord

Discord OAuth2 Provider for Laravel Socialite

422.0M17](/packages/socialiteproviders-discord)

PHPackages © 2026

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