PHPackages                             hzdad/codecheck - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hzdad/codecheck

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hzdad/codecheck
===============

Webman plugin hzdad/codecheck

v1.0(3y ago)5326MITPHP

Since Jun 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hzdad/codecheck)[ Packagist](https://packagist.org/packages/hzdad/codecheck)[ RSS](/packages/hzdad-codecheck/feed)WikiDiscussions main Synced 1mo ago

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

codecheck for webman
====================

[](#codecheck-for-webman)

For webman, create a SMS verification code and verify 适用于webman, 创建一个短信验证码并验证, 短信验证码生成、缓存、验证类库, 基于 [tpsms](https://github.com/LunziSTU/tp-sms) 修改

主要特性
----

[](#主要特性)

- 支持 7 种验证码类型
- 基于 ThinkCache 缓存
- 灵活的配置机制

安装
--

[](#安装)

```
composer require hzdad/codecheck

```

配置
--

[](#配置)

config/plugin/hzdad/codecheck/app.php

```
return [
    'enable' => true,
    'expire' => 300,//过期时间
    'length' => 6,//验证码长度
    'chcktimes' => 3,//最多可以尝试次数
    'delafterok' => true,//验证后从缓存删除
];

```

使用示例
----

[](#使用示例)

```
    public function createCode()
    {
        $checksms = new \Hzdad\Codecheck\Codecheck();
        $code = $checksms->mobile('18888888888')->scene('login')->create();
        echo $code;
    }

    public function checkCode()
    {
        $checksms = new \Hzdad\Codecheck\Codecheck();
        $res = $checksms->mobile('18888888888')->scene('login')->checktimes(3)->delafterok(false)->code('594093')->check();
        if(!$res){
            $msg = $checksms->getErrorMsg();
        }else{
            $msg = 'ojbk';
        }
        echo $msg;
    }

```

版权信息
----

[](#版权信息)

codecheck遵循Apache2开源协议发布，并提供免费使用。

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

1446d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eed2b1e6204fb588e5ac7ea299dd38ab2d6dfc65550d3865ae049d4c8422f673?d=identicon)[hzdad](/maintainers/hzdad)

---

Top Contributors

[![hzdad](https://avatars.githubusercontent.com/u/1798052?v=4)](https://github.com/hzdad "hzdad (8 commits)")

### Embed Badge

![Health badge](/badges/hzdad-codecheck/health.svg)

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

PHPackages © 2026

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