PHPackages                             ptx/lumen-ihuyi - 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. ptx/lumen-ihuyi

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

ptx/lumen-ihuyi
===============

互亿无线SDK

v2.0.1(7y ago)2118MITPHPPHP &gt;=7.1CI failing

Since Aug 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/putianxin/lumen-ihuyi)[ Packagist](https://packagist.org/packages/ptx/lumen-ihuyi)[ Docs](https://github.com/putianxin/lumen-ihuyi)[ RSS](/packages/ptx-lumen-ihuyi/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (2)Versions (10)Used By (0)

lumen-ihuyi
===========

[](#lumen-ihuyi)

📲 互亿无线 composer package.

Requirement
-----------

[](#requirement)

- PHP &gt;= 7.1

安装
--

[](#安装)

```
$ composer require ptx/lumen-ihuyi"
```

配置
--

[](#配置)

**请根据config配置在.env中加入以下配置信息或移动并修改config中的配置**

```
'sms'=>[
    'APIID' => env('HUYI_API_ID', ''),
    'APIKEY' => env('HUYI_API_KEY', ''),
],
'yxsms'=>[
    'APIID' => env('HUYI_YX_API_ID', ''),
    'APIKEY' => env('HUYI_YX_API_KEY', ''),
],
'voice'=>[
    'APIID' => env('HUYI_VOICE_API_ID', ''),
    'APIKEY' => env('HUYI_VOICE_API_KEY', ''),
],
'mms'=>[
    'APIID' => env('HUYI_MMS_API_ID', ''),
    'APIKEY' => env('HUYI_MMS_API_KEY', ''),
],
'isms'=>[
    'APIID' => env('HUYI_ISMS_API_ID', ''),
    'APIKEY' => env('HUYI_ISMS_API_KEY', ''),
],
```

注册服务

lumen:

$app-&gt;register(\\Ptx\\Huyi\\HuyiServiceProvider::class);

laravel:

ServiceProvider:

\\Ptx\\Huyi\\HuyiServiceProvider::class

Usage
-----

[](#usage)

```
//$phone_number 多个号码以逗号分隔传入

//短信验证码/通知
Huyi::sms()->content($content)->send($phone_number);

//语音验证码
Huyi::voice()->content($content)->send($phone_number);
//国际短信
Huyi::isms()->content($content)->send($phone_number);
//短信营销
Huyi::yxsms()->content($content)->send($phone_number);
//彩信营销(定时发送)
Huyi::yxsms()->content($content)->stime($time)->send($phone_number);
//彩信营销
Huyi::mms()->mmsid($mmsid)->pid($pid)->send($phone_number);
```

License
-------

[](#license)

MIT

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~38 days

Recently: every ~49 days

Total

9

Last Release

2612d ago

Major Versions

v1.0.9 → v2.0.02019-05-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11360560?v=4)[ptx](/maintainers/putianxin)[@putianxin](https://github.com/putianxin)

---

Top Contributors

[![putianxin](https://avatars.githubusercontent.com/u/11360560?v=4)](https://github.com/putianxin "putianxin (17 commits)")

---

Tags

laravellumenihuyihuyi

### Embed Badge

![Health badge](/badges/ptx-lumen-ihuyi/health.svg)

```
[![Health](https://phpackages.com/badges/ptx-lumen-ihuyi/health.svg)](https://phpackages.com/packages/ptx-lumen-ihuyi)
```

###  Alternatives

[nativephp/mobile

NativePHP for Mobile

1.1k102.1k138](/packages/nativephp-mobile)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[oat-sa/tao-core

TAO core extension

65147.9k151](/packages/oat-sa-tao-core)[firefly-iii/data-importer

Firefly III Data Import Tool.

8165.8k](/packages/firefly-iii-data-importer)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2087.0k31](/packages/ronasit-laravel-helpers)[ycodetech/valet-windows

A more enjoyable local development experience for Windows. A Windows port of the popular Laravel Valet and a fork of cretueusebiu/valet-windows, with new features.

451.8k](/packages/ycodetech-valet-windows)

PHPackages © 2026

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