PHPackages                             standopen/smtctools - 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. standopen/smtctools

ActiveLibrary

standopen/smtctools
===================

智慧同城工具集合

v0.0.1(5y ago)04mitPHP

Since Nov 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/StandOpen/smtctools)[ Packagist](https://packagist.org/packages/standopen/smtctools)[ RSS](/packages/standopen-smtctools/feed)WikiDiscussions master Synced 4d ago

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

smtctools
=========

[](#smtctools)

智慧同城工具箱

\##Jwt

```
JSON WEB TOKEN
来自https://github.com/F21/jwt

```

\##Sensitive.php

```
    /**
     * 检查是否包含敏感词
     * @param $content
     * @return bool
     */
    public function checkSensiveExist($content)
    {
        $checkedWords = "关键词,关键词1";
        $instance = Sensitive::getInstance();
        $instance->addSensitiveWords($checkedWords);
        return $instance->isExist($content);
    }

    /**
     * 替换敏感词
     * @param $content
     * @return string
     */
    public function checkSensiveReplace($content)
    {
        $replaceWords = "关键词,关键词1";
        $instance = Sensitive::getInstance();
        $instance->addSensitiveWords($replaceWords);
        return $instance->replaceWords($content);
    }

```

\##DmPay.php

```

$config = [
    //签名方式,默认为RSA2(RSA2048)
    'sign_type' => "RSA2",
    //支付宝公钥
    'alipay_public_key' => "",
    //商户私钥
    'merchant_private_key' => "",
    //编码格式
    'charset' => "UTF-8",
    //支付宝网关
    'gatewayUrl' => "https://openapi.alipay.com/gateway.do",
    //应用ID
    'app_id' => "",
    //异步通知地址,只有扫码支付预下单可用
    'notify_url' => "http://www.baidu.com",
    //最大查询重试次数
    'MaxQueryRetry' => "10",
    //查询间隔
    'QueryDuration' => "3"
];

try {
    $params = new PayParams();
    $params->addGoods('apple-01', 'iphone', 1, 300);
    $params->setOutTradeNo(time());
    $params->setTotalAmount(1);
    $params->setSubject("洗车服务");
    $params->setBody("洗车费用30元");
    $content = $params->getBizContent();
    $pay = new DmPay($config);
    $arr = $pay->execute($content);
    print_r($arr);
} catch (\Exception $e) {
    var_dump($e->getMessage());
}

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

2012d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8facde54b0551abaea1c20cb53a0984a54823fccc5ca8db4977d15a66cfd6d56?d=identicon)[standopen](/maintainers/standopen)

---

Top Contributors

[![StandOpen](https://avatars.githubusercontent.com/u/5117229?v=4)](https://github.com/StandOpen "StandOpen (1 commits)")

### Embed Badge

![Health badge](/badges/standopen-smtctools/health.svg)

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

PHPackages © 2026

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