PHPackages                             fxm5547/laravel-aliyun-sms - 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. fxm5547/laravel-aliyun-sms

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

fxm5547/laravel-aliyun-sms
==========================

阿里云短信服务 - Laravel/Lumen

1.0.8(8y ago)21.6kMITPHPPHP &gt;5.3

Since Jul 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/fxm5547/laravel-aliyun-sms)[ Packagist](https://packagist.org/packages/fxm5547/laravel-aliyun-sms)[ RSS](/packages/fxm5547-laravel-aliyun-sms/feed)WikiDiscussions master Synced yesterday

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

laravel-aliyun-sms
------------------

[](#laravel-aliyun-sms)

阿里云短信服务Laravel/Lumen适配，基于api V20170525版本。

阿里云短信服务地址接入流程：[https://help.aliyun.com/document\_detail/55288.html?spm=5176.sms-account.109.10.56907c16jbje4H](https://help.aliyun.com/document_detail/55288.html?spm=5176.sms-account.109.10.56907c16jbje4H)

Install
-------

[](#install)

```
composer require fxm5547/laravel-aliyun-sms

```

Config
------

[](#config)

### 在Laravel项目的`.env`文件中配置如下信息。

[](#在laravel项目的env文件中配置如下信息)

```
ALIYUN_SMS_ENABLE_HTTP_PROXY=false
ALIYUN_SMS_HTTP_PROXY_IP=127.0.0.1
ALIYUN_SMS_HTTP_PROXY_PORT=8888
ALIYUN_SMS_REGION_ID=cn-hangzhou
ALIYUN_SMS_AK=""
ALIYUN_SMS_AS=""
ALIYUN_SMS_SIGN_NAME=""

```

### 注册ServiceProvide

[](#注册serviceprovide)

#### Laravel

[](#laravel)

在项目的`config/app.php`文件中`providers`数组中新增如下行：

```
Curder\LaravelAliyunSms\ServiceProvider::class,

```

#### Lumen

[](#lumen)

在项目的`config/app.php`文件中新增如下行：

```
$app->register(Curder\LaravelAliyunSms\ServiceProvider::class);

```

### 生成配置文件

[](#生成配置文件)

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

```

生成的文件在`config/aliyunsms.php`，可以前往修改。

How to use ?
------------

[](#how-to-use-)

```
$smsService = App::make(Curder\LaravelAliyunSms\AliyunSms::class);
$smsService->send(strval($mobile), $tplId , $params);

```

> 接受的参数分别是：
>
> - string $mobile -&gt; 短信接受手机号
> - string $tplId -&gt; 模板签名id，需要在阿里云后台申请，并通过审核才可以使用
> - array $params -&gt; 发送参数

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~20 days

Recently: every ~40 days

Total

9

Last Release

3077d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a97af62470b20370c9aef47851b4b1617d5091f728705123af85e44f46419ca?d=identicon)[fxm5547](/maintainers/fxm5547)

---

Top Contributors

[![curder](https://avatars.githubusercontent.com/u/8327004?v=4)](https://github.com/curder "curder (12 commits)")[![fxm5547](https://avatars.githubusercontent.com/u/6702775?v=4)](https://github.com/fxm5547 "fxm5547 (4 commits)")

---

Tags

laravelsdklumensmsaliyunAliyun-Sms

### Embed Badge

![Health badge](/badges/fxm5547-laravel-aliyun-sms/health.svg)

```
[![Health](https://phpackages.com/badges/fxm5547-laravel-aliyun-sms/health.svg)](https://phpackages.com/packages/fxm5547-laravel-aliyun-sms)
```

###  Alternatives

[curder/laravel-aliyun-sms

阿里云短信服务 - Laravel

113.6k](/packages/curder-laravel-aliyun-sms)[jjonline/aliyun-dysms-php-sdk

Aliyun SMS SDK for PHP

2197.2k](/packages/jjonline-aliyun-dysms-php-sdk)[cmzz/laravel-aliyun-sms

阿里云短信服务 for Laravel

413.6k](/packages/cmzz-laravel-aliyun-sms)[matthewbdaly/laravel-sms

A Laravel and Lumen integration for matthewbdaly/sms-client to enable sending SMS messages

3529.8k](/packages/matthewbdaly-laravel-sms)

PHPackages © 2026

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