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(6y ago)2118MITPHPPHP &gt;=7.1

Since Aug 22Pushed 6y 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 2mo 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 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

2517d ago

Major Versions

v1.0.9 → v2.0.02019-05-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/7887a1ad0fe7c3305ad49b8b79ddccae329f85a3f7669cf5454c932cbe73acba?d=identicon)[putianxin](/maintainers/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

[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97110.7k](/packages/laracrafts-laravel-url-shortener)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[proai/lumen-annotations

Route and event binding annotations for Laravel Lumen

1012.4k](/packages/proai-lumen-annotations)

PHPackages © 2026

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