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 2w 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

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

2567d 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

[backpack/basset

Dead-simple way to load CSS or JS assets only once per page, when using Laravel 10+.

207923.1k10](/packages/backpack-basset)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

42010.0k](/packages/venturedrake-laravel-crm)[firefly-iii/data-importer

Firefly III Data Import Tool.

8005.8k](/packages/firefly-iii-data-importer)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

98145.2k3](/packages/nickurt-laravel-akismet)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97112.0k](/packages/laracrafts-laravel-url-shortener)

PHPackages © 2026

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