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. [Security](/categories/security)
4. /
5. goan/sm234

ActiveLibrary[Security](/categories/security)

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

国密sm234

v1.0.1(4y ago)0148MITPHPPHP &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 today

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

sm234
=====

[](#sm234)

#### 介绍

[](#介绍)

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

#### 使用说明

[](#使用说明)

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

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

1627d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/45654812?v=4)[GO-ON-Zhang](/maintainers/GO-ON-Zhang)[@GO-ON-Zhang](https://github.com/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)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k37](/packages/paragonie-ecc)

PHPackages © 2026

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