PHPackages                             goan/sm234 - 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. goan/sm234

ActiveLibrary

goan/sm234
==========

国密sm234

v1.0.1(4y ago)088MITPHPPHP &gt;=7.2

Since Jan 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/GO-ON-Zhang/sm234)[ Packagist](https://packagist.org/packages/goan/sm234)[ RSS](/packages/goan-sm234/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

sm234
=====

[](#sm234)

#### 介绍

[](#介绍)

近日有项目需要使用招行的聚合支付，需要使用国密sm2算法来签名和验签。因招行暂未提供php的代码，所以特搜集了需要用到的所有类库，并写了一个简单的文件来获取主动支付二维码，供有同样需求的小伙伴参考。

#### 使用说明

[](#使用说明)

1. 该示例代码使用了thinkphp6
2. 加签为：Sign(array $array)；验签为：ValidSign(array $array)。只有这两个方法涉及国密算法，其他逻辑均可参考招行文档

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

1581d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9dcf5b74a933fe423b7225bf5219573c8ce175641f5c0e35df7d04597ef6822b?d=identicon)[GO-ON-Zhang](/maintainers/GO-ON-Zhang)

---

Top Contributors

[![GO-ON-Zhang](https://avatars.githubusercontent.com/u/45654812?v=4)](https://github.com/GO-ON-Zhang "GO-ON-Zhang (4 commits)")

### Embed Badge

![Health badge](/badges/goan-sm234/health.svg)

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

PHPackages © 2026

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