PHPackages                             zifan/socialite-dingtalk - 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. zifan/socialite-dingtalk

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

zifan/socialite-dingtalk
========================

Dingtalk OAuth2 Provider for Laravel Socialite

v1.0.0(3y ago)021MITPHPPHP ^7.3|^8.0

Since Mar 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/a443939412/socialite-dingtalk)[ Packagist](https://packagist.org/packages/zifan/socialite-dingtalk)[ RSS](/packages/zifan-socialite-dingtalk/feed)WikiDiscussions master Synced 1mo ago

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

socialiteproviders-dingtalk
===========================

[](#socialiteproviders-dingtalk)

基于socialiteproviders/manager的钉钉第三方登录

```
composer require zifan/socialite-dingtalk
```

Installation &amp; Basic Usage
------------------------------

[](#installation--basic-usage)

Please see the [Base Installation Guide](https://socialiteproviders.com/usage/), then follow the provider specific instructions below.

### Add configuration to `config/services.php`

[](#add-configuration-to-configservicesphp)

```
'dingtalk' => [
	'client_id' => env('DINGTALK_CLIENT_ID'),
	'client_secret' => env('DINGTALK_CLIENT_SECRET'),
	'redirect' => env('DINGTALK_REDIRECT_URI'),
	// 'guzzle' => ['verify' => false],
	// 'scopes' => ['openid'] #openid：授权后可获得用户userid（一般适用于企业内部应用）；openid corpid：授权后可获得用户id和登录过程中用户选择的组织id
],
```

### Add provider event listener

[](#add-provider-event-listener)

Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.

```
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        'Zifan\\SocialiteDingtalk\\DingTalkExtendSocialite@handle',
    ],
];
```

### Usage

[](#usage)

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

```
return Socialite::driver('dingtalk')->redirect();
```

### Returned User fields

[](#returned-user-fields)

- `openId`
- `unionid`
- `nick`
- `avatarUrl`
- `mobile`
- `email`
- `stateCode`

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

1149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/adc6b4a4ee23a86755a3e254a28e15b1b224049ec3e282a967dd2352d6da9df5?d=identicon)[a443939412](/maintainers/a443939412)

---

Top Contributors

[![a443939412](https://avatars.githubusercontent.com/u/13361366?v=4)](https://github.com/a443939412 "a443939412 (4 commits)")

### Embed Badge

![Health badge](/badges/zifan-socialite-dingtalk/health.svg)

```
[![Health](https://phpackages.com/badges/zifan-socialite-dingtalk/health.svg)](https://phpackages.com/packages/zifan-socialite-dingtalk)
```

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