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 2w 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

3277d 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/apple

Apple OAuth2 Provider for Laravel Socialite

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

Microsoft OAuth2 Provider for Laravel Socialite

346.9M19](/packages/socialiteproviders-microsoft)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

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

Microsoft Azure OAuth2 Provider for Laravel Socialite

586.8M25](/packages/socialiteproviders-microsoft-azure)[socialiteproviders/laravelpassport

LaravelPassport OAuth2 Provider for Laravel Socialite

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

Discord OAuth2 Provider for Laravel Socialite

422.3M22](/packages/socialiteproviders-discord)

PHPackages © 2026

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