PHPackages                             2345public/dtmsdk - 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. 2345public/dtmsdk

ActiveLibrary

2345public/dtmsdk
=================

DTM分布式事务客户端SDK

v1.1.0(3y ago)022PHPPHP &gt;=7.3|^8.0

Since Dec 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/2345public/DtmSdk)[ Packagist](https://packagist.org/packages/2345public/dtmsdk)[ RSS](/packages/2345public-dtmsdk/feed)WikiDiscussions main Synced 1mo ago

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

\[TOC\]

DTM 分布式事务客户端SDK文档
=================

[](#dtm-分布式事务客户端sdk文档)

---

0. 简介
-----

[](#0-简介)

- dtm分布式事务客户端，包括配置、签名校验、重试等。
- 与dtm分布式事务中心通信。

1. 目录
-----

[](#1-目录)

```
├── README.md
├── composer.json
└── src
    ├── Base （单例基类）
    │   └── BaseClass.php
    ├── Config （配置模板）
    │   ├── client.php
    │   ├── errcodes.php
    │   └── sign.php
    ├── Constant （常量）
    │   └── DtmConstant.php
    ├── Contracts （接口合同模板）
    │   ├── ConfigInterface.php
    │   ├── FactoryInterface.php
    │   ├── IDatabase.php
    │   ├── ITransExcludeSaga.php
    │   ├── ITransWithSaga.php
    │   ├── SignInterface.php
    │   └── SingletonInterface.php
    ├── Exception（自定义异常）
    │   ├── BaseException.php
    │   └── ClientException.php
    ├── Laravel（laravel服务对接）
    │   ├── DtmClient.php
    │   └── ServiceProvider.php
    ├── Service（基础服务）
    │   ├── BarrierTrans.php
    │   ├── Config.php
    │   ├── Factory.php
    │   ├── SagaTrans.php
    │   └── TransBase.php
    ├── Sign（签名模块）
    │   ├── Md5.php
    │   ├── Sha1.php
    │   └── Sha256.php
    ├── Test（测试）
    │   ├── Demo.php
    │   └── Psr4Autoloader.php
    ├── Traits（公共部分）
    │   ├── HttpTrait.php
    │   ├── SignTrait.php
    │   ├── SingletonTrait.php
    │   └── UtilsTrait.php
    ├── Utils（工具）
    │   └── ToolsUtil.php
    ├── DtmClient.php（发起端入口）
    └── DtmServer.php（接收端入口）

```

2. 签名规则
-------

[](#2-签名规则)

- 字段：sign
- 算法：sha256
- 拼接：token+timestamp+salt
- 发起方式：post请求的url上，以参数的形式传递，例如：token=tttttttt ，则url为 ?\* app=etimestamp=1669872494&amp;\* salt=ab8fesdf0sign=fa007b3de37717bff29e0b8cc0b7271d3e615870adbfac183c9168afd87c0e2b
- 参数说明：token为颁发给项目的授权码，每个项目都不同；timestamp为时间戳，精确到秒；salt为随机码；

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

4

Last Release

1234d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6eb6b52f74a862b31f0951a6009546965949927dded5bd3386cd11b2551e58f?d=identicon)[2345public](/maintainers/2345public)

---

Top Contributors

[![2345public](https://avatars.githubusercontent.com/u/121540781?v=4)](https://github.com/2345public "2345public (4 commits)")

---

Tags

sdkdtmdtmsdk

### Embed Badge

![Health badge](/badges/2345public-dtmsdk/health.svg)

```
[![Health](https://phpackages.com/badges/2345public-dtmsdk/health.svg)](https://phpackages.com/packages/2345public-dtmsdk)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k511.3M2.2k](/packages/aws-aws-sdk-php)[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)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[azure-oss/storage

Azure Blob Storage PHP SDK

37985.0k5](/packages/azure-oss-storage)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)

PHPackages © 2026

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