PHPackages                             vring/douyin-openapi - 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. [API Development](/categories/api)
4. /
5. vring/douyin-openapi

ActiveLibrary[API Development](/categories/api)

vring/douyin-openapi
====================

对接抖音开放平台的sdk

012PHP

Since Sep 29Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/vnser/douyin-openapi)[ Packagist](https://packagist.org/packages/vring/douyin-openapi)[ RSS](/packages/vring-douyin-openapi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

- 本包是根据ydg/douyin-open-sdk修改而来，感谢作者的辛苦付出~

#### 新增内容

[](#新增内容)

- 增加抖音来客券码核销功能
- 内置自动获取access\_token，优化access\_token缓存机制
- 增加流量主广告板块，
- 增加登录code登录，获取手机号
- 增加支付 09.29

```
$dy = DouyinApp::make([
        'appid' => $appid,
        'appsecret' => $appsecret,
        //应用私钥，解密消息
        'private_key' => $private_key,
        'payment' => [
             #沙盒
            'is_sandbox' => true,
            #支付盐
            'salt' => $payment_salt,
            #支付回传token
            'token' => $payment_token
        ]
    ]);
    //授权登录
    $dy->oauth->code2Session('4BrAgVF7Ufp0G1MiTpnQhfOozadmZTdv_Yn1Eg-aDz-_aftfmS2NUEtpKeBEPAYfFeIrI_19h0qIobGdpqVHCy-egMhtVPzjK3Rs8ge1rAc_VfWDqEbjEhoHbVw');
    //获取手机号
    $dy->phone_number->getUserPhoneNumber($mobileCode);
    //支付
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance44

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a59f4874703e950c5cae2bd2ee6766f46fc86360f94bcd7e830ee96202a0dc2?d=identicon)[vnser](/maintainers/vnser)

### Embed Badge

![Health badge](/badges/vring-douyin-openapi/health.svg)

```
[![Health](https://phpackages.com/badges/vring-douyin-openapi/health.svg)](https://phpackages.com/packages/vring-douyin-openapi)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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