PHPackages                             orh/tapd - 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. [API Development](/categories/api)
4. /
5. orh/tapd

ActiveLibrary[API Development](/categories/api)

orh/tapd
========

Tencent tapd api

v1.5.0(3y ago)112966MITPHPPHP &gt;=7.0

Since Dec 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ouronghuang/tapd)[ Packagist](https://packagist.org/packages/orh/tapd)[ RSS](/packages/orh-tapd/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (4)Versions (12)Used By (0)

 Tencent Tapd Api For PHP
==========================

[](#--tencent-tapd-api-for-php)

 [ ![Packagist PHP Version Support](https://camo.githubusercontent.com/91e5b4659fa964b6b912ab7e6d445edd7b11f7151a8646484fc8641a6ad402b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6f72682f74617064) ](https://packagist.org/packages/orh/tapd) [ ![Packagist Version](https://camo.githubusercontent.com/300e427fd6f406df79b020f8be31d712eb31bb8572aecdd3ea1154299e7fb8f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f72682f746170643f636f6c6f723d646638303537) ](https://packagist.org/packages/orh/tapd) [ ![Packagist Downloads](https://camo.githubusercontent.com/8dad9f528bfaab6079eaf755bac524f1a6dd0a297e0595eeaf6e587fd8e3ec58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f72682f74617064) ](https://packagist.org/packages/orh/tapd) [ ![StyleCI Build Status](https://camo.githubusercontent.com/6b80457bcd4e8270c851438dda31efb280f8563c07a83f8ad323cdeb1394e4d0/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3331373739353438332f736869656c643f7374796c653d666c6174) ](https://github.com/ouronghuang/tapd) [ ![Build Status](https://camo.githubusercontent.com/ce8d65c91b1ba2d18b7bae75bf3ecc27ab87ff6072790b64dea23e84fd5fafe9/68747470733a2f2f7472617669732d63692e6f72672f6f75726f6e676875616e672f746170642e7376673f6272616e63683d6d6173746572) ](https://github.com/ouronghuang/tapd)

按照 [TAPD API 文档](https://www.tapd.cn/help/view#1120003271001002318) 实现了所有接口

安装
--

[](#安装)

```
$ composer require orh/tapd

```

使用
--

[](#使用)

1. 初始化

```
use Orh\Tapd\Tapd;

$apiUser = '';
$apiPassword = '';

$tapd = new Tapd($apiUser, $apiPassword);
// $tapd->setHttp($apiUser, $apiPassword);
```

2. 按模块使用

```
// $tapd->{$module}->{$method}();

$data = [];
$query = [];

$tapd->boardcard->store($data);
$tapd->bug->getLinkBugs($query);
$tapd->story->list($query);
```

模块对应的类及其方法
----------

[](#模块对应的类及其方法)

```
.
├── boardcard「看板工作项」
│   ├── list()「获取看板工作项接口」
│   ├── store()「新建看板工作项」
│   └── update()「更新看板工作项」
│
├── bug「缺陷」
│   ├── list()「获取缺陷接口」
│   ├── count()「缺陷计数接口」
│   ├── groupCount()「缺陷统计接口」
│   ├── store()「添加缺陷接口」
│   ├── update()「更新缺陷接口」
│   ├── customFieldsSettings()「获取缺陷自定义字段配置」
│   ├── changes()「获取缺陷变更历史接口」
│   ├── changesCount()「获取缺陷变更历史数量」
│   └── getLinkBugs()「获取缺陷与其它缺陷的所有关联关系」
│
├── comment「评论」
│   ├── list()「获取评论接口」
│   ├── count()「获取评论数量接口」
│   ├── store()「添加评论接口」
│   └── update()「更新评论接口」
│
├── iteration「迭代」
│   ├── list()「获取迭代接口」
│   ├── count()「迭代计数接口」
│   ├── store()「创建迭代」
│   ├── update()「更新迭代」
│   └── customFieldsSettings()「获取迭代自定义字段配置」
│
├── launchform「发布评审」
│   ├── list()「获取发布评审接口」
│   ├── count()「获取发布评审数量接口」
│   └── customFieldsSettings()「获取发布评审自定义字段配置」
│
├── module「模块」
│   ├── list()「获取模块接口」
│   ├── count()「获取模块数量接口」
│   ├── store()「新建模块接口」
│   └── update()「更新模块接口」
│
├── relation「关联关系」
│   └── list()「获取关联关系接口」
│
├── release「发布计划」
│   ├── list()「获取发布计划接口」
│   └── count()「获取发布计划数量接口」
│
├── role「项目角色」
│   └── list()「获取项目角色接口」
│
├── story「需求」
│   ├── list()「获取需求接口」
│   ├── count()「需求计数接口」
│   ├── store()「新建需求接口」
│   ├── update()「更新需求接口」
│   ├── customFieldsSettings()「获取需求自定义字段配置」
│   ├── getLinkStories()「获取需求与其它需求的所有关联关系」
│   ├── changes()「获取需求变更历史接口」
│   ├── changesCount()「获取需求变更次数」
│   ├── categories()「获取需求分类接口」
│   ├── categoriesCount()「获取需求分类数量」
│   ├── getStoryTcase()「获取需求与测试用例关联关系接口」
│   └── updateStorySelectFieldOptions()「更新需求下拉类型自定义字段候选值」
│   └── getFieldsInfo()「获取需求所有字段及候选值」
│
├── task「任务」
│   ├── list()「获取任务接口」
│   ├── count()「任务计数接口」
│   ├── store()「新建任务接口」
│   ├── update()「更新任务接口」
│   ├── customFieldsSettings()「获取任务自定义字段配置」
│   ├── changes()「获取任务变更历史」
│   └── changesCount()「获取任务变更次数」
│
├── test「测试用例」
│   ├── list()「获取测试用例接口」
│   ├── count()「获取测试用例数量」
│   ├── store()「创建测试用例」
│   ├── update()「更新测试用例」
│   ├── plans()「获取测试计划接口」
│   ├── plansCount()「获取测试计划数量」
│   ├── categories()「获取测试用例目录接口」
│   ├── categoriesCount()「获取测试用例目录数量」
│   ├── result()「获取测试用例执行结果」
│   └── getStoryByTcaseId()「获取测试用例关联的需求接口」
│
├── timesheet「工时花费」
│   ├── list()「获取花费工时接口」
│   ├── count()「获取花费工时数量接口」
│   ├── store()「创建工时花费」
│   └── update()「更新工时花费」
│
├── version「版本」
│   ├── list()「获取版本接口」
│   ├── count()「获取版本数量接口」
│   ├── store()「创建版本接口」
│   └── update()「更新版本接口」
│
├── workflow「工作流」
│   └── statusMap()「获取工作流状态中英文名对应关系」
│
├─── workspace「公司」
│   ├── addMemberByNick()「添加公司成员到指定项目」
│   ├── users()「获取公司下或者项目下成员」
│   └── projects()「获取公司项目列表」
│
└── wiki「wiki」
    ├── list()「获取wiki接口」
    ├── count()「获取wiki数量接口」
    ├── store()「创建wiki接口」
    └── update()「更新wiki接口」

```

License
-------

[](#license)

MIT

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.7% 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 ~58 days

Recently: every ~140 days

Total

11

Last Release

1412d ago

### Community

Maintainers

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

---

Top Contributors

[![ouronghuang](https://avatars.githubusercontent.com/u/33394698?v=4)](https://github.com/ouronghuang "ouronghuang (45 commits)")[![bootell](https://avatars.githubusercontent.com/u/6562023?v=4)](https://github.com/bootell "bootell (1 commits)")[![racklin](https://avatars.githubusercontent.com/u/21985?v=4)](https://github.com/racklin "racklin (1 commits)")

---

Tags

apitencenttapd

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/orh-tapd/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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