PHPackages                             dtapp/think-bt - 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. dtapp/think-bt

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

dtapp/think-bt
==============

宝塔控制面板ThinkPHP扩展包

v6.0.1(6y ago)115MITPHPPHP &gt;=7.0

Since Apr 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dtapps/think-bt)[ Packagist](https://packagist.org/packages/dtapp/think-bt)[ Docs](https://www.dtapp.net)[ RSS](/packages/dtapp-think-bt/feed)WikiDiscussions v6.0 Synced 6d ago

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

[![dtApp Logo](https://camo.githubusercontent.com/e858adb379e4fd8e72b8b1f6c1865bbb2b87a48b975533e619b678f8ac861f8c/68747470733a2f2f63646e2e6f73732e6c696775616e676368756e2e636e2f30342f3939396539663266303664333936393638656163633130636539626338612e706e67)](https://camo.githubusercontent.com/e858adb379e4fd8e72b8b1f6c1865bbb2b87a48b975533e619b678f8ac861f8c/68747470733a2f2f63646e2e6f73732e6c696775616e676368756e2e636e2f30342f3939396539663266303664333936393638656163633130636539626338612e706e67)

[ThinkPhP6宝塔扩展包](https://www.dtapp.net/)
========================================

[](#thinkphp6宝塔扩展包)

📦 ThinkPhP6宝塔扩展包

[![Latest Stable Version](https://camo.githubusercontent.com/fafdabcf693d941772105b71e426a3607146587b2a09190bbfab4d44ff5dfa24/68747470733a2f2f706f7365722e707567782e6f72672f64746170702f7468696e6b2d62742f762f737461626c65)](https://packagist.org/packages/dtapp/think-bt)[![Latest Unstable Version](https://camo.githubusercontent.com/4c8758c85838b995160c7fd4d4cbe05cc1ec66e0ce7ded5ab0fee1865a3d2ccb/68747470733a2f2f706f7365722e707567782e6f72672f64746170702f7468696e6b2d62742f762f756e737461626c65)](https://packagist.org/packages/dtapp/think-bt)[![Total Downloads](https://camo.githubusercontent.com/d81cd9e5426ed55b83f265eb98401a09f49eea717a04771c601f9c1c3a0d5c4c/68747470733a2f2f706f7365722e707567782e6f72672f64746170702f7468696e6b2d62742f646f776e6c6f616473)](https://packagist.org/packages/dtapp/think-bt)[![License](https://camo.githubusercontent.com/85bf9d181a84d533071e87b3f16b2a0ea194f2bbfbad1e2fe6f619aa9ad05dca/68747470733a2f2f706f7365722e707567782e6f72672f64746170702f7468696e6b2d62742f6c6963656e7365)](https://packagist.org/packages/dtapp/think-bt)

依赖环境
----

[](#依赖环境)

1. PHP7.0 版本及以上（低版本和7.4版本未做兼容处理！）

安装
==

[](#安装)

建议配置源库
------

[](#建议配置源库)

```
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

```

安装开发版
-----

[](#安装开发版)

```
composer require dtapp/think-bt ^6.0.x-dev -vvv

```

安装稳定版
-----

[](#安装稳定版)

```
composer require dtapp/think-bt ^6.0.* -vvv

```

更新
--

[](#更新)

```
composer update dtapp/think-bt -vvv

```

删除
--

[](#删除)

```
composer remove dtapp/think-bt -vvv

```

使用
--

[](#使用)

#### 支持动态和静动配置

[](#支持动态和静动配置)

#### 动态配置：每次调用的时候传入配置参数，参数请参考下面示例方法

[](#动态配置每次调用的时候传入配置参数参数请参考下面示例方法)

#### 静动配置：在根目录下的config文件夹里有个dtapp.php文件，配置如下方所示

[](#静动配置在根目录下的config文件夹里有个dtappphp文件配置如下方所示)

```
// 宝塔配置
    'bt' => [
        // 接口网址带端口
        'path' => '',
        // 密钥
        'key' => ''
    ]

```

#### 获取面板操作日志 示例代码

[](#获取面板操作日志-示例代码)

```
use DtApp\Think\Bt\Api;

 $config = [
     'key' => $BT_KEY,
     'panel' => $BT_PANEL,
 ];

$api = new Api($config);
try {
    var_dump($api->getLogs()->page(1)->limit(10)->order('id desc')->toArray());
} catch (CurlException $e) {
    var_dump($e->getMessage());
}

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.3% 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

3

Last Release

2211d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

thinkbtDtApp

### Embed Badge

![Health badge](/badges/dtapp-think-bt/health.svg)

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

###  Alternatives

[topthink/think-captcha

captcha package for thinkphp

132934.4k68](/packages/topthink-think-captcha)[topthink/think-worker

workerman extend for thinkphp

202227.2k9](/packages/topthink-think-worker)[yunwuxin/think-cron

计划任务

17416.2k](/packages/yunwuxin-think-cron)[zzstudio/think-addons

The ThinkPHP6 Addons Package

1518.6k](/packages/zzstudio-think-addons)[isszz/rotate-captcha

Rotate image captcha

801.7k](/packages/isszz-rotate-captcha)[topthink/think-annotation

Annotation For ThinkPHP

4831.5k8](/packages/topthink-think-annotation)

PHPackages © 2026

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