PHPackages                             papajo/tmtpay - 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. [Payment Processing](/categories/payments)
4. /
5. papajo/tmtpay

ActiveLibrary[Payment Processing](/categories/payments)

papajo/tmtpay
=============

06PHP

Since Dec 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Ulll/tmtpay)[ Packagist](https://packagist.org/packages/papajo/tmtpay)[ RSS](/packages/papajo-tmtpay/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

tmtpay
======

[](#tmtpay)

说明
--

[](#说明)

集成微信和支付宝等多个支付渠道，实现tmtpost平台中的基本支付业务场景，包括创建订单，查询订单，删除订单，创建支付方式，修改支付方式，获取第三方支付渠道凭据

用法
--

[](#用法)

```
composer require "papajo/tmtpay"

```

```
$db  = new TmtPay\Storage\PayModel();
$inputdata = [
    'user_guid' => 1,
    'goods_guid' => 2,
    'goods_type' => 'tmtpro_renew',
    'goods_num' => 1,
    'order_title' => '钛媒体PRO会员续费'
];
$pay     = new TmtPay\Pay($db);
$orderId = $pay->GenerateOrderId($inputdata);
$proof   = $pay->GenerateProof($orderId);
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2457792?v=4)[P Joshi](/maintainers/papajo)[@papajo](https://github.com/papajo)

### Embed Badge

![Health badge](/badges/papajo-tmtpay/health.svg)

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

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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