PHPackages                             gemor/fzo - 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. gemor/fzo

ActiveLibrary

gemor/fzo
=========

v0.1.5(6y ago)05MITPHPPHP &gt;5.3

Since Apr 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wdgwgz/FzoVerifyCode)[ Packagist](https://packagist.org/packages/gemor/fzo)[ RSS](/packages/gemor-fzo/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

基于 阿里云短信 验证的 业务类
----------------

[](#基于-阿里云短信-验证的-业务类)

安装
--

[](#安装)

安装扩展

```
composer require gemor/fzo

```

发布配置文件

```
php artisan vendor:publish --provider="Fzo\ServiceProvider"

```

数据库创建(手动创建一下吧)

```
CREATE TABLE `verify_code` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `phone` varchar(255) NOT NULL COMMENT '手机号',
  `code` int(11) NOT NULL DEFAULT '0' COMMENT '验证码',
  `type` varchar(255) NOT NULL DEFAULT '' COMMENT '类型',
  `status` varchar(255) NOT NULL DEFAULT '' COMMENT '状态',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  `response` text,
  PRIMARY KEY (`id`),
  KEY `phone` (`phone`(191)) USING BTREE COMMENT '手机号索引'
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='短信验证码';

```

### 用法

[](#用法)

```
/**
 * 发送短信
 * $phone 手机号
 */
(new \Fzo\VerifyCode())->send($phone)

/**
 * 验证短信
 * $phone 手机号
 * $code 短信验证码
 */
(new \Fzo\VerifyCode())->verify($phone, $code)

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

2265d ago

### Community

Maintainers

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

---

Top Contributors

[![wdgwgz](https://avatars.githubusercontent.com/u/536340?v=4)](https://github.com/wdgwgz "wdgwgz (11 commits)")

### Embed Badge

![Health badge](/badges/gemor-fzo/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M305](/packages/laravel-horizon)[laravel/octane

Supercharge your Laravel application's performance.

4.0k26.6M223](/packages/laravel-octane)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k18](/packages/solspace-craft-freeform)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

10244.2k5](/packages/bitrix24-b24phpsdk)

PHPackages © 2026

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