PHPackages                             baota/client - 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. baota/client

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

baota/client
============

BaoTa Panel SDK for PHP.

v1.0.0(1y ago)02.1k1MITPHPPHP ^8.0

Since Feb 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dependencies-packagist/baota-php-client)[ Packagist](https://packagist.org/packages/baota/client)[ Docs](https://github.com/dependencies-packagist/baota-php-client)[ RSS](/packages/baota-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

BaoTa Panel SDK for PHP.
========================

[](#baota-panel-sdk-for-php)

[![GitHub Tag](https://camo.githubusercontent.com/a250fc94e1a30421eabf1b79f9a66e28d9b56da48c1addf05641bd803ff051ee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f646570656e64656e636965732d7061636b61676973742f62616f74612d7068702d636c69656e74)](https://github.com/dependencies-packagist/baota-php-client/tags)[![Total Downloads](https://camo.githubusercontent.com/93e35da799926b9f8288399be0f4667a610cb39a9fa707adc77277aead79df61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62616f74612f636c69656e743f7374796c653d666c61742d737175617265)](https://packagist.org/packages/baota/client)[![Packagist Version](https://camo.githubusercontent.com/deee39598d08b639b770913194e63940f19dbf8c1bc32a713bbbd5e9d141c986/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62616f74612f636c69656e74)](https://packagist.org/packages/baota/client)[![Packagist PHP Version Support](https://camo.githubusercontent.com/ec7b4ea946166fbe488e991e685b266f50adb73a85781e1e4a507d4b44c621c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f62616f74612f636c69656e74)](https://github.com/dependencies-packagist/baota-php-client)[![Packagist License](https://camo.githubusercontent.com/872a230005c9dca3a7b5c29d88f3855a6cbf55b53370ac57ae953f56e2f4e2aa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646570656e64656e636965732d7061636b61676973742f62616f74612d7068702d636c69656e74)](https://github.com/dependencies-packagist/baota-php-client)

Installation
------------

[](#installation)

You can install the package via [Composer](https://getcomposer.org/):

```
composer require baota/client
```

Usage
-----

[](#usage)

```
use BaoTa\Client;

$bt       = new Client(bt_uri: 'http://127.0.0.1:8888', bt_key: 'xxxxxxxxxxxxxxxx');
$response = $bt->getSystemTotal();
var_dump($response);
```

```
use BaoTa\Client;

$bt       = new Client(bt_uri: 'http://127.0.0.1:8888', bt_key: 'xxxxxxxxxxxxxxxx');
$response = $bt->request('/plugin?action=a&name=deployment&s=SetupPackage', [
    'dname'       => $dname,
    'site_name'   => $site_name,
    'php_version' => $php_version,
]);
var_dump($response);
```

Methods
-------

[](#methods)

### System

[](#system)

MethodURIDescriptiongetSystemTotal/system?action=GetSystemTotal获取系统基础统计getDiskInfo/system?action=GetDiskInfo获取磁盘分区信息getNetWork/system?action=GetNetWork获取实时状态信息(CPU、内存、网络、负载)getTaskCount/ajax?action=GetTaskCount检查是否有安装任务updatePanel/ajax?action=UpdatePanel检查面板更新### Sites

[](#sites)

MethodURIDescriptionwebsites/data?action=getData&amp;table=sites获取网站列表webtypes/site?action=get\_site\_types获取网站分类getPHPVersion/site?action=GetPHPVersion获取已安装的 PHP 版本列表getSitePHPVersion/site?action=GetSitePHPVersion获取指定网站运行的 PHP 版本setPHPVersion/site?action=SetPHPVersion修改指定网站的 PHP 版本setHasPwd/site?action=SetHasPwd开启并设置网站密码访问closeHasPwd/site?action=CloseHasPwd关闭网站密码访问getDirUserINI/site?action=GetDirUserINI获取网站几项开关webAddSite/site?action=AddSite创建网站webDeleteSite/site?action=DeleteSite删除网站webSiteStop/site?action=SiteStop停用网站webSiteStart/site?action=SiteStart启用网站webSetEdate/site?action=SetEdate设置网站有效期webSetPs/data?action=setPs&amp;table=sites修改网站备注webBackupList/data?action=getData&amp;table=backup获取网站备份列表webToBackup/site?action=ToBackup创建网站备份webDelBackup/site?action=DelBackup删除网站备份webDoaminList/data?action=getData&amp;table=domain获取网站域名列表getDirBinding/site?action=GetDirBinding获取网站域名绑定二级目录信息addDirBinding/site?action=AddDirBinding添加网站子目录域名delDirBinding/site?action=DelDirBinding删除网站绑定子目录getDirRewrite/site?action=GetDirRewrite获取网站子目录伪静态规则webAddDomain/site?action=AddDomain添加网站域名webDelDomain/site?action=DelDomain删除网站域名getSiteLogs/site?action=GetSiteLogs获取网站日志getSecurity/site?action=GetSecurity获取网站盗链状态及规则信息setSecurity/site?action=SetSecurity设置网站盗链状态及规则信息getSSL/site?action=GetSSL获取 SSL 状态及证书详情setSSL/site?action=SetSSL设置 SSL 证书httpToHttps/site?action=HttpToHttps强制 HTTPScloseToHttps/site?action=CloseToHttps关闭强制 HTTPScloseSSLConf/site?action=CloseSSLConf关闭 SSLwebGetIndex/site?action=GetIndex获取网站默认文件webSetIndex/site?action=SetIndex设置网站默认文件getLimitNet/site?action=GetLimitNet获取网站流量限制信息setLimitNet/site?action=SetLimitNet设置网站流量限制信息closeLimitNet/site?action=CloseLimitNet关闭网站流量限制get301Status/site?action=Get301Status获取网站 301 重定向信息set301Status/site?action=Set301Status设置网站 301 重定向信息getRewriteList/site?action=GetRewriteList获取可选的预定义伪静态列表getFileBody/files?action=GetFileBody获取指定预定义伪静态规则内容saveFileBody/files?action=SaveFileBody保存伪静态规则内容getProxyList/site?action=GetProxyList获取网站反代信息及状态createProxy/site?action=CreateProxy添加网站反代信息modifyProxy/site?action=ModifyProxy修改网站反代信息### Ftp

[](#ftp)

MethodURIDescriptionwebFtpList/data?action=getData&amp;table=ftps获取 FTP 信息列表setUserPassword/ftp?action=SetUserPassword修改 FTP 账号密码setStatus/ftp?action=SetStatus启用/禁用### DBM

[](#dbm)

MethodURIDescriptionwebSqlList/data?action=getData&amp;table=databases获取 SQL 信息列表resDatabasePass/database?action=ResDatabasePassword修改 SQL 账号密码SQLToBackup/database?action=ToBackup创建 SQL 备份SQLDelBackup/database?action=DelBackup删除 SQL 备份### Plugin

[](#plugin)

MethodURIDescriptiondeployment/deployment?action=GetList&amp;type=&amp;search宝塔一键部署列表setupPackage/deployment?action=SetupPackage部署任务License
-------

[](#license)

Nacosvel Contracts is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance43

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

449d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2da9b458375a1b7972b7c4d26a5bf8f3e48db305e8805da36f253956f33c5568?d=identicon)[jundayw](/maintainers/jundayw)

---

Top Contributors

[![jundayw](https://avatars.githubusercontent.com/u/16873970?v=4)](https://github.com/jundayw "jundayw (7 commits)")

---

Tags

BaoTa PHP SDKBaoTa PHP Client

### Embed Badge

![Health badge](/badges/baota-client/health.svg)

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

###  Alternatives

[shlinkio/shlink

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

4.8k4.3k](/packages/shlinkio-shlink)[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)
