PHPackages                             linshunwei/danhar-yun - 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. linshunwei/danhar-yun

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

linshunwei/danhar-yun
=====================

统一会员中心接口

1.1.0(7y ago)014MITPHP

Since May 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/linshunwei/danhar-yun)[ Packagist](https://packagist.org/packages/linshunwei/danhar-yun)[ RSS](/packages/linshunwei-danhar-yun/feed)WikiDiscussions master Synced 4d ago

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

东合公共会员服务端接口
===========

[](#东合公共会员服务端接口)

安装
--

[](#安装)

使用 composer

```
composer require linshunwei/danhar-yun
```

在配置文件中添加服务提供者（Laravel5.5 有自动添加）

```
'providers' => [
    //...
    Linshunwei\DanharYun\DanharYunServiceProvider::class,
    //...
],
```

复制配置文件到配置目录，配置文件内容不多，而且可以在 `.env` 文件中设置。手动复制或者使用命令复制：

```
php artisan vendor:publish --provider="Linshunwei\DanharYun\DanharYunServiceProvider"
```

修改配置文件 `config/danhar-yun.php`

```
'host' => env('DANHAR_YUN_HOST',''), //会员服务器
'admin_host' => env('DANHAR_YUN_ADMIN_HOST',''), //管理后台服务器
'token_url' => env('DANHAR_YUN_OAUTH_TOKEN_URL',''),
'authorization_url' => env('DANHAR_YUN_OAUTH_AUTHORIZATIION_URL',''),
'callback_url' => env('DANHAR_YUN_CALLBACK_URL',''), //回调服务器
'client_id' => env('DANHAR_YUN_CLIENT_ID',''),
'client_secret' =>  env('DANHAR_YUN_CLIENT_SECRET',''),
'log_debug' =>  env('DANHAR_YUN_LOG_DEBUG',false), //是否开启日志 /logs/danhar_yun目录
```

或者直接在 `.env` 文件中设置需要修改的内容，没有特殊情况默认即可

```
DANHAR_YUN_HOST=127.0.0.1
DANHAR_YUN_CLIENT_ID=xxxx
DANHAR_YUN_CLIENT_SECRET=xxx
......

```

代码调用 消息列表+

```
    $yun = new DanharYun();
    $res = $yun->getParameterItem('xxx');
```

###  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

Maturity60

Established project with proven stability

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 ~0 days

Total

2

Last Release

2566d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fe2545ef1e7a6237d40d28020530c2f32f22a7f35993bc55e2a1baa2ab983ae?d=identicon)[linshunwei](/maintainers/linshunwei)

### Embed Badge

![Health badge](/badges/linshunwei-danhar-yun/health.svg)

```
[![Health](https://phpackages.com/badges/linshunwei-danhar-yun/health.svg)](https://phpackages.com/packages/linshunwei-danhar-yun)
```

###  Alternatives

[descope/descope-php

Descope SDK for PHP

3814.0k](/packages/descope-descope-php)[egroupware/openid

EGroupware OpenID Connect / OAuth2 server

1226.8k2](/packages/egroupware-openid)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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