PHPackages                             liguangchun/think-library - 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. liguangchun/think-library

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

liguangchun/think-library
=========================

ThinkPhP扩展包

v6.0.132(6y ago)495532MITPHPPHP &gt;=7.1CI failing

Since Apr 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dtapps/think-library)[ Packagist](https://packagist.org/packages/liguangchun/think-library)[ Docs](https://www.dtapp.net)[ RSS](/packages/liguangchun-think-library/feed)WikiDiscussions v6 Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (136)Used By (2)

[![www.dtapp.net](https://camo.githubusercontent.com/5a0eef920badb650d93c0f2466cef01cd6df98e023bd6489aaf9f3e09132c630/68747470733a2f2f6b6f646f2d63646e2e64746170702e6e65742f30342f3939396539663266303664333936393638656163633130636539626338612e706e67)](https://camo.githubusercontent.com/5a0eef920badb650d93c0f2466cef01cd6df98e023bd6489aaf9f3e09132c630/68747470733a2f2f6b6f646f2d63646e2e64746170702e6e65742f30342f3939396539663266303664333936393638656163633130636539626338612e706e67)

[ThinkPHP6扩展包](https://www.dtapp.net/)
======================================

[](#thinkphp6扩展包)

📦 ThinkPHP6扩展包

[![Latest Stable Version](https://camo.githubusercontent.com/cf9f9ffd128935d4d3221e63fa196cc098a2f5e52cf42f142c661c0a6926bff8/68747470733a2f2f706f7365722e707567782e6f72672f6c696775616e676368756e2f7468696e6b2d6c6962726172792f762f737461626c65)](https://packagist.org/packages/liguangchun/think-library)[![Latest Unstable Version](https://camo.githubusercontent.com/788f425b38e9de8c5275421ec3454eafaea7fbc79ad733e079b79ac01fe0c56b/68747470733a2f2f706f7365722e707567782e6f72672f6c696775616e676368756e2f7468696e6b2d6c6962726172792f762f756e737461626c65)](https://packagist.org/packages/liguangchun/think-library)[![Total Downloads](https://camo.githubusercontent.com/0cc38dfd636e2bb7ab635231fcbb6d353c8e194cf56b65f1b794e20bf0c5b131/68747470733a2f2f706f7365722e707567782e6f72672f6c696775616e676368756e2f7468696e6b2d6c6962726172792f646f776e6c6f616473)](https://packagist.org/packages/liguangchun/think-library)[![License](https://camo.githubusercontent.com/d363417063382dd579c2215b6e0bec15f11271ac6c7d8b08da9a873eb4706a33/68747470733a2f2f706f7365722e707567782e6f72672f6c696775616e676368756e2f7468696e6b2d6c6962726172792f6c6963656e7365)](https://packagist.org/packages/liguangchun/think-library)[![PHP Version](https://camo.githubusercontent.com/a36ed93e60420b5782989c6c5834d9b2085aab7c1a99bc36751792706a2f0b83/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e312d3838393242462e737667)](http://www.php.net/)[![Build Status](https://camo.githubusercontent.com/b66ec94ef4aaef1a0f561107b0cf08cfa7bc609018c12187542c95f198ad238e/68747470733a2f2f7472617669732d63692e6f72672f4743303230322f5468696e6b4c6962726172792e7376673f6272616e63683d362e30)](https://travis-ci.org/GC0202/ThinkLibrary)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/13bac767d93405a41c833f91080efb2dc39491ab8d01a45c23e05c5c150a4014/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4743303230322f5468696e6b4c6962726172792f6261646765732f7175616c6974792d73636f72652e706e673f623d362e30)](https://scrutinizer-ci.com/g/GC0202/ThinkLibrary/?branch=6.0)[![Code Coverage](https://camo.githubusercontent.com/46d4532d42377b3936724f3c24017123e677add55d34440272afe3867da5e4e4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4743303230322f5468696e6b4c6962726172792f6261646765732f636f7665726167652e706e673f623d362e30)](https://scrutinizer-ci.com/g/GC0202/ThinkLibrary/?branch=6.0)

依赖环境
----

[](#依赖环境)

1. PHP7.1 版本及以上

托管
--

[](#托管)

- 国外仓库地址：
- 国内仓库地址：
- Packagist 地址：

### 开发版

[](#开发版)

```
composer require liguangchun/think-library ^6.x-dev -vvv

```

### 稳定版

[](#稳定版)

```
composer require liguangchun/think-library ^6.0.* -vvv

```

更新
--

[](#更新)

```
composer update liguangchun/think-library -vvv

```

删除
--

[](#删除)

```
composer remove liguangchun/think-library -vvv

```

获取电脑Mac地址服务使用示例
---------------

[](#获取电脑mac地址服务使用示例)

```
use DtApp\ThinkLibrary\service\SystemService;

dump(SystemService::instance()
->mac());
```

百度地图服务使用示例
----------

[](#百度地图服务使用示例)

```
use DtApp\ThinkLibrary\service\baidu\LbsYunService;

dump(LbsYunService::instance()
        ->ak("")
        ->weather());
```

高德地图服务使用示例
----------

[](#高德地图服务使用示例)

```
use DtApp\ThinkLibrary\service\amap\AmApService;

dump(AmApService::instance()
        ->key("")
        ->weather());
```

抖音服务使用示例
--------

[](#抖音服务使用示例)

```
use DtApp\ThinkLibrary\exception\DtaException;
use DtApp\ThinkLibrary\service\douyin\WatermarkService;

try {
    // 方法一之网址
    dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/')
->getAll()
->toArray());
    // 方法一之粘贴
    dump(WatermarkService::instance()->url('#在抖音，记录美好生活#美丽电白欢迎您 https://v.douyin.com/vPGAdM/ 复制此链接，打开【抖音短视频】，直接观看视频！')->getAll()->toArray());
    // 方法二之网址
    $dy = WatermarkService::instance()->url('https://v.douyin.com/vPafcr/');
    dump($dy->getAll()->toArray());
    // 方法二之粘贴
    $dy = WatermarkService::instance()->url('#在抖音，记录美好生活#2020茂名加油，广州加油，武汉加油！中国加油，众志成城！#航拍 #茂名#武汉 #广州 #旅拍 @抖音小助手 https://v.douyin.com/vPafcr/ 复制此链接，打开【抖音短视频】，直接观看视频！');
    dump($dy->getAll()->toArray());
    // 获取全部信息
    dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/')
->getAll()
->toArray());
    // 获取原全部信息
    dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/')
->getApi()
->toArray());
    // 获取视频信息
    dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/')
->getVideoInfo()
->toArray());
    // 获取音频信息
    dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/')
->getMusicInfo()
->toArray());
    // 获取分享信息
    dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/')
->getShareInfo()
->toArray());
    // 获取作者信息
    dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/')
->getAuthorInfo()
->toArray());
    // 返回数组数据方法
    dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/')
->getAll()
->toArray());
    // 返回Object数据方法
    dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/')
->getAll()
->toObject());
} catch (DtaException $e) {
    // 错误提示
    dump($e->getMessage());
}
```

纯真数据库
-----

[](#纯真数据库)

```
use DtApp\ThinkLibrary\service\QqWryService;

// 获取IP信息
dump(QqWryService::instance()
        ->getLocation());
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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

136

Last Release

2218d ago

Major Versions

v5.1.x-dev → v6.0.12020-04-13

PHP version history (4 changes)v5.1.1PHP &gt;=5.6.0

v6.0.1PHP &gt;=7.0

v6.0.10PHP &gt;=7.2

v6.0.100PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/02a79b81a1be118f29bbe0548dc729e57ff393daaa984c66f3919a9bcefc597d?d=identicon)[liguangchun](/maintainers/liguangchun)

---

Top Contributors

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

---

Tags

librarythinkphpThinkLibrarythinkDtAppliguangchunthink-library

### Embed Badge

![Health badge](/badges/liguangchun-think-library/health.svg)

```
[![Health](https://phpackages.com/badges/liguangchun-think-library/health.svg)](https://phpackages.com/packages/liguangchun-think-library)
```

###  Alternatives

[zhongshaofa/easyadmin

基于ThinkPHP6.0和layui的快速开发的后台管理系统。

6609.3k](/packages/zhongshaofa-easyadmin)[isszz/rotate-captcha

Rotate image captcha

801.7k](/packages/isszz-rotate-captcha)[liliuwei/thinkphp-jump

适用于thinkphp6.0的跳转扩展

2874.4k1](/packages/liliuwei-thinkphp-jump)[xiaodi/think-pullword

ThinkPHP 分词/抽词 扩展包

5512.1k](/packages/xiaodi-think-pullword)[xiaodi/think-pinyin

ThinkPHP 中文转拼音扩展包

344.6k](/packages/xiaodi-think-pinyin)

PHPackages © 2026

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