PHPackages                             crny/swiftpass-pay - 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. crny/swiftpass-pay

ActiveLibrary[Payment Processing](/categories/payments)

crny/swiftpass-pay
==================

1.0.3(7y ago)033MITPHP

Since Apr 27Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (3)Used By (0)

swiftpass-pay
=============

[](#swiftpass-pay)

威富通支付SDK

版本1.0.3
=======

[](#版本103)

包含如下接口：

- 商户进件接口
- js原生态支付接口

Feature
-------

[](#feature)

- 命名空间规范
- 隐藏开发者不需要关注的细节（签名，xml序列化）
- 开发者只需要知道用数组传递什么参数即可

Requirement
-----------

[](#requirement)

- composer
- rmccue/requests
- particle/validator
- php &gt;= 5.5.9

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

[](#installation)

```
 composer require mztli/swiftpass-pay

```

Usag
----

[](#usag)

基本使用（js原生态支付示例）

```
use SwiftPass\Pay\RawWebPay;
$data = [
    'mch_id' => '7551000001',
    'mchKey' => '9d101c97133837e13dde2d32a5054abb',
    'out_trade_no' => '1234567asd',
    'body' => 'test',
    'total_fee' => 1,
    'mch_create_ip' => '192.168.0.1',
    'notify_url' => 'http://www.baidu.com'
];

$obj = new RawWebPay(true);
$res = $obj->Pay($data);
var_dump($res); //预支付订单数据
```

特别提示：
-----

[](#特别提示)

- 在使用本SDK前请熟读“威富通”支付的相关文档及微信支付相关文档
- 本SDK是隐藏了实现细节，以助开发者将更多经历集中在业务层面

写在最后
----

[](#写在最后)

谢谢各位捧场，如果有任何为题可以给我发邮件，我会在收到邮件后第一时间给予答复

- mail :

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 82.6% 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 ~432 days

Total

2

Last Release

2917d ago

### Community

Maintainers

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

---

Top Contributors

[![mztlive](https://avatars.githubusercontent.com/u/13467892?v=4)](https://github.com/mztlive "mztlive (19 commits)")[![crny](https://avatars.githubusercontent.com/u/3130566?v=4)](https://github.com/crny "crny (4 commits)")

---

Tags

paywechat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/crny-swiftpass-pay/health.svg)

```
[![Health](https://phpackages.com/badges/crny-swiftpass-pay/health.svg)](https://phpackages.com/packages/crny-swiftpass-pay)
```

###  Alternatives

[yansongda/pay

可能是我用过的最优雅的 Alipay 和 WeChat 的支付 SDK 扩展包了

5.3k1.3M56](/packages/yansongda-pay)[yansongda/laravel-pay

专注 Alipay/WeChat/Unipay 的 laravel 支付扩展包

1.1k363.8k11](/packages/yansongda-laravel-pay)[lokielse/omnipay-wechatpay

Wechat gateway for Omnipay payment processing library

314225.4k7](/packages/lokielse-omnipay-wechatpay)[yansongda/hyperf-pay

可能是基于 hyperf 的最优雅的支付宝、微信、银联支付 SDK 了

8962.8k1](/packages/yansongda-hyperf-pay)[guanguans/yii-pay

适配于 Yii 的 alipay 和 wechat 的支付扩展包

515.8k](/packages/guanguans-yii-pay)

PHPackages © 2026

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