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

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

curder/laravel-aliyun-sms
=========================

阿里云短信服务 - Laravel

1.0.5(9y ago)113.6k3MITPHPPHP &gt;5.3

Since Jul 3Pushed 9y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (7)Used By (0)

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

[](#laravel-aliyun-sms)

阿里云短信服务-Laravel，基于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 curder/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)

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

```
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

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~0 days

Total

6

Last Release

3289d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelsdksmsaliyunAliyun-Sms

### Embed Badge

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

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

###  Alternatives

[jjonline/aliyun-dysms-php-sdk

Aliyun SMS SDK for PHP

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

阿里云短信服务 for Laravel

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

PHPackages © 2026

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