PHPackages                             hlw2326/think-plugin-mp-shared - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hlw2326/think-plugin-mp-shared

ActiveThink-admin-plugin[Utility &amp; Helpers](/categories/utility)

hlw2326/think-plugin-mp-shared
==============================

ThinkAdmin 小程序插件共享组件

v1.0.0(2mo ago)09MITPHPPHP &gt;=8.2

Since Apr 8Pushed 2mo agoCompare

[ Source](https://github.com/hlw2326/think-plugin-mp-shared)[ Packagist](https://packagist.org/packages/hlw2326/think-plugin-mp-shared)[ Docs](https://www.hlw2326.com)[ RSS](/packages/hlw2326-think-plugin-mp-shared/feed)WikiDiscussions main Synced 2w ago

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

hlw2326/think-plugin-mp-shared
==============================

[](#hlw2326think-plugin-mp-shared)

ThinkAdmin 小程序插件共享组件，提供用户解析器和通用服务，所有小程序相关插件统一依赖此包。

> **作者微信**：hlw2326

---

组件内容
----

[](#组件内容)

文件说明`src/contract/UserResolver.php`用户解析器接口`src/service/UserResolverService.php`用户解析器服务（静态单例）---

使用方式
----

[](#使用方式)

### 各插件依赖此包

[](#各插件依赖此包)

```
{
  "require": {
    "hlw2326/think-plugin-mp-shared": "*"
  }
}
```

### 主应用注册解析器

[](#主应用注册解析器)

在主应用初始化时一次性注册所有插件的用户解析器：

```
