PHPackages                             devin/video-tools - 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. devin/video-tools

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

devin/video-tools
=================

短视频的拓展包，集成各大短视频的去水印功能

v1.0.8(5y ago)12MITPHPPHP &gt;= 7.0

Since May 1Pushed 5y agoCompare

[ Source](https://github.com/Devin-hjc/video-tools)[ Packagist](https://packagist.org/packages/devin/video-tools)[ RSS](/packages/devin-video-tools/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Smalls
======

[](#smalls)

[![Latest Stable Version](https://camo.githubusercontent.com/23ee8a183d68a2930993e117224ac97bbc0bf784dff24243424c69a6d45ec22f/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6c732f766964656f2d746f6f6c732f762f737461626c65)](https://packagist.org/packages/smalls/video-tools)[![Total Downloads](https://camo.githubusercontent.com/71660d074a37efe821a0836c8fb4a627618aad73bee994cf0254aab3ed5db4d2/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6c732f766964656f2d746f6f6c732f646f776e6c6f616473)](https://packagist.org/packages/smalls/video-tools)[![Latest Unstable Version](https://camo.githubusercontent.com/c31f84a8e913e91d2ec477d4eb27c5565f440ea31d18cacbc9b71ef804cc1435/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6c732f766964656f2d746f6f6c732f762f756e737461626c65)](https://packagist.org/packages/smalls/video-tools)[![License](https://camo.githubusercontent.com/599808b4be64b9f4ce95b32e0f6312d8c7f0ca5021cde56b8dcdefa832b7b012/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6c732f766964656f2d746f6f6c732f6c6963656e7365)](https://packagist.org/packages/smalls/video-tools)

短视频去水印
------

[](#短视频去水印)

集成了：抖.音、火.山、头.条、快.手、梨.视.频、美.拍、陌.陌、皮.皮.搞.笑、皮.皮.虾、全.民.搞.笑、刷.宝、微.视、小.咖.秀、最.右、B.站、微.博、秒.拍等等。其他如果需要对接的可以issues

- 技术交流群：1055772768 - 进群密码：smalls
- 我们已经对接了19个平台的视频提取（部分视频是有水印的，没办法做到无水印）

===============

- 2020-06-24：更新抖音提取视频
- 2020-06-14：添加秒拍提取视频，修复美拍提取视频失败
- 2020-06-13：添加微博提取视频（远古视频有水印）
- 2020-06-10：新加代理功能，有点不稳定，有什么好的建议可以issues给我
- 2020-06-10：添加url-validator配置类
- 2020-06-09：全部优化了一下更加面向对象，新加B.站解析视频
- 2020-04-29：第一个版本

安装
--

[](#安装)

```
composer require smalls/video-tools

```

如果需要更新扩展包使用

```
composer update smalls/video-tools

```

---

> 运行环境要求PHP7.0+

VideoManager使用文档：(可以参考tests/test.php)
=====================================

[](#videomanager使用文档可以参考teststestphp)

```
抖.音：VideoManager::DouYin()->start($url);
快.手：VideoManager::KuaiShou()->start($url);
火.山：VideoManager::HuoShan()->start($url);
头.条：VideoManager::TouTiao()->start($url);
快.手：VideoManager::XiGua()->start($url);
快.手：VideoManager::WeiShi()->start($url);
皮.皮.虾：VideoManager::PiPiXia()->start($url);
最.右：VideoManager::ZuiYou()->start($url);
美.拍：VideoManager::MeiPai()->start($url);
梨.视.频：VideoManager::LiVideo()->start($url);
全.民.搞.笑：VideoManager::QuanMingGaoXiao()->start($url);
皮.皮.搞.笑：VideoManager::PiPiGaoXiao()->start($url);
陌.陌：VideoManager::MoMo()->start($url);
刷.宝：VideoManager::ShuaBao()->start($url);
小.咖.秀：VideoManager::XiaoKaXiu()->start($url);
B.站：VideoManager::Bili()->start($url);
微.博：VideoManager::WeiBo()->start($url);
微.博短视频：VideoManager::WeiBo()->newVideoStart($url);
秒.拍：VideoManager::MiaoPai()->start($url);
B.站.指定参数：VideoManager::Bili()->setUrl($url)->setQuality(BiliQualityType::LEVEL_2)->execution();

```

自定义URL配置文件：url-validator
------------------------

[](#自定义url配置文件url-validator)

```
 例如抖.音：$res = VideoManager::KuaiShou([
           'proxy_whitelist' => ['kuaishou'],//白名单，需要提交类名，全部小写
           'proxy' => '$ip:$port',
           'url_validator' => [
                 这边参考config/url-validator.php
           ]
       ])->start($url);
 可以参考config/url-validator.php的格式用参数传递，如果不指定则使用默认的
 不会怎么编写全部使用默认也是可以的

```

返回成功：array
----------

[](#返回成功array)

```
 array(8) {
    ["md5"]=>
    string(32) "fb0f49b1158923a972d9eed40f97965e"
    ["message"]=>
    string(29) "https://v.kuaishou.com/xxxx"
    ["user_name"]=>
    string(15) "xxxx"
    ["user_head_img"]=>
    string(103) "https://tx2.a.yximgs.com/uhead/AB/2020/04/20/14/xxxxx.jpg"
    ["desc"]=>
    string(46) "小子，xxxxx"
    ["img_url"]=>
    string(139) "https://js2.a.yximgs.com/xxxxx.jpg"
    ["video_url"]=>
    string(144) "https://jsmov2.a.yximgs.com/xxxxx.mp4"
    ["type"]=>
    string(5) "video"
 }

```

返回失败：exception
--------------

[](#返回失败exception)

```
    需要进行try-catch
    namespace \Smalls\VideoTools\Exception;
    try {
        $res = VideoManager::KuaiShou()->start("https://v.kuaishou.com/xxxx");
    } catch (ErrorVideoException $e) {
        $e->getTraceAsString();
    }

```

---

结束：
===

[](#结束)

注：仅供学习,切勿用于其他用途。
**喜欢的话，给个star呗**
**喜欢的话，给个star呗**
**喜欢的话，给个star呗**

自己可以参考tests/test.php（需要在主页面里面调式：小白一枚）
都无法使用再提issue

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.6% 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 ~20 days

Total

4

Last Release

2146d ago

PHP version history (2 changes)1.0.5PHP &gt;= 5.6.0

v1.0.8PHP &gt;= 7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51405657?v=4)[3226](/maintainers/3226)[@3226](https://github.com/3226)

---

Top Contributors

[![Devin-hjc](https://avatars.githubusercontent.com/u/33113941?v=4)](https://github.com/Devin-hjc "Devin-hjc (11 commits)")[![smalls0098](https://avatars.githubusercontent.com/u/46087049?v=4)](https://github.com/smalls0098 "smalls0098 (3 commits)")

---

Tags

devinvideo-tools

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devin-video-tools/health.svg)

```
[![Health](https://phpackages.com/badges/devin-video-tools/health.svg)](https://phpackages.com/packages/devin-video-tools)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[smalls/video-tools

短视频的拓展包，集成各大短视频的去水印功能

6868.8k](/packages/smalls-video-tools)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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