PHPackages                             hardywen/yimei - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. hardywen/yimei

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

hardywen/yimei
==============

亿美短信

5.0.1(10y ago)06971MITPHPPHP &gt;=5.5.9

Since Mar 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/hardywen/yimei)[ Packagist](https://packagist.org/packages/hardywen/yimei)[ RSS](/packages/hardywen-yimei/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

\###Install

1.将 `'hardywen/yimei': 'dev-master'` 加入composer.json文件

```
"require": {
	  "laravel/framework": "4.2.*",
	  "..."
	  "hardywen/yimei": "dev-master"
},
```

2.运行`composer update` 安装本组件

3.在`app/config/app.php`中加入以下配置

```
	'providers' => array(
	    '...',
	    'Hardywen\Yimei\YimeiServiceProvider',
	)

	'aliases' => array(
	    '...',
	    'Yimei'            => 'Hardywen\Yimei\Facades\YimeiFacade',
	)
```

\###Config

4.运行下面这条命令

`php artisan config:publish hardywen/yimei`

5.运行上面命令后，可以在 `app/config/packages/hardywen/yimei/config`里配置支付宝的相关参数

\###Usage

6.发送短信

```
$content = Yimei::getContent(); //可以传入 code 参数。将通过config里面的内容模板渲染出来。不传code参数则会自动生成6位随机数字
$msg = Yimei::sendSMS(['138xxxxxxxx','138xxxxxxxx'], $content);
```

7.新实例 第6点的使用是使用config.php的配置去发送的。如果想实时更新配置，重新生成一个新实例，则用以下方法：

```
	$config = [];//配置项，没有配置的会使用config.php中的配置。
	$yimei = Yimei::newInstance($config);
	$content = $yimei->getContent();
	$yimei->sendSMS([],$content);
```

8.新增方法，除了官方demo里的方法之外，多增加了一个获取剩余短信条数的方法 getMsgStock(); 就是整合一个原有的getBalance()和getEachFee()而已

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

3910d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/730b1d31144cf283dd5a4f979a32cff0fec848d33fd13bbe6488c5509417f6c7?d=identicon)[hardywen](/maintainers/hardywen)

---

Top Contributors

[![hardywen](https://avatars.githubusercontent.com/u/7113324?v=4)](https://github.com/hardywen "hardywen (6 commits)")

---

Tags

phplaravelmobile-messageYimei

### Embed Badge

![Health badge](/badges/hardywen-yimei/health.svg)

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

###  Alternatives

[vemcogroup/laravel-sparkpost-driver

SparkPost driver to use with Laravel 6.x|7.x|8.x|9.x|10.x

421.7M1](/packages/vemcogroup-laravel-sparkpost-driver)[biegalski-llc/laravel-mailgun-webhooks

This package allows you to quick and easily integrate your Laravel application with Mailgun Webhooks thus allowing you to track the outgoing email status for each individual user. There is also an optional feature to receive alerts for specific mailgun events such as spam complaints and sending failuresgit .

2389.2k](/packages/biegalski-llc-laravel-mailgun-webhooks)[martian/spammailchecker

A laravel package that protect users from entering non-existing/spam email addresses.

422.0k](/packages/martian-spammailchecker)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

14109.2k](/packages/hafael-azure-mailer-driver)[juanparati/brevosuite

Complete Brevo integration with Laravel

1010.8k](/packages/juanparati-brevosuite)[misma/laravel-mailpeek

MailPeek provides a simple local inbox right in your browser to enable you preview emails being sent from your application.

212.1k](/packages/misma-laravel-mailpeek)

PHPackages © 2026

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