PHPackages                             leavebn/duanship - 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. leavebn/duanship

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

leavebn/duanship
================

Short video remove watermark

v1.1.2(5y ago)0171MITPHPPHP &gt;=7.0

Since Nov 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/leavebn/duanship)[ Packagist](https://packagist.org/packages/leavebn/duanship)[ RSS](/packages/leavebn-duanship/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (6)Used By (0)

duanship phpsdk
===============

[](#duanship-phpsdk)

本项目提供了短视频去水印解析的服务

使用说明
====

[](#使用说明)

首先安装这个包

```
composer require leavebn/duanship
```

然后使用：

```
use Leavebn\Duanship\DuanAPI;

$dapi = new DuanAPI([
    "secretId"  => "填入你的secretId",
    "secretKey" => "填入你的secretKey",
    "preParse"  => false // 是否需要返回更多信息，如视频尺寸和格式
]);

echo json_encode(
    $dapi->parse("https://h5.pipix.com/s/JajGA65/")
, JSON_UNESCAPED_UNICODE);
```

结果示例：

```
{"code":200,"data":{"title":"视频标题","url":"http://xxx.mp4","from":"Douyin"}}
```

失败示例：

```
{"code":109,"msg":"获取视频信息失败"}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Every ~0 days

Total

5

Last Release

2000d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

tiktok

### Embed Badge

![Health badge](/badges/leavebn-duanship/health.svg)

```
[![Health](https://phpackages.com/badges/leavebn-duanship/health.svg)](https://phpackages.com/packages/leavebn-duanship)
```

PHPackages © 2026

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