PHPackages                             lichmaker/send\_message\_by\_aliyun\_for\_laravel5 - 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. lichmaker/send\_message\_by\_aliyun\_for\_laravel5

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

lichmaker/send\_message\_by\_aliyun\_for\_laravel5
==================================================

use Aliyun SDK to send messages for Laravel 5

27PHP

Since Nov 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Lichmaker/send_message_by_aliyun_for_laravel5)[ Packagist](https://packagist.org/packages/lichmaker/send_message_by_aliyun_for_laravel5)[ RSS](/packages/lichmaker-send-message-by-aliyun-for-laravel5/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SendMessage\_by\_Aliyun\_for\_Laravel5
======================================

[](#sendmessage_by_aliyun_for_laravel5)

use Aliyun SDK to send messages for Laravel 5

### 安装

[](#安装-)

在终端输入以下命令进行安装

```
composer require lichmaker/send_message_by_aliyun_for_laravel5 dev-master
```

### 配置

[](#配置)

在`config/app.php`中的相应位置，添加以下代码：

```
  'providers' => [

  ......

  Lichmaker\MessagesSender\MessagesSenderServiceProvider::class,
  ],

  'aliases' => [

  ......

  'MessagesSender' => Lichmaker\MessagesSender\Facade\MessagesSenderFacade::class,
  ],
```

在`.env`文件中，添加阿里云的accesskeyID和accesskeySECRET

```
ALIYUN_ACCESSKEYID=(填入阿里云账户accesskeyID)
ALIYUN_ACCESSKEYSECRET=(填入阿里云账户accesskeySECRET)

```

### 使用方法

[](#使用方法)

1、使用前请先前往阿里云官网开通短信发送服务，获取短信模板代码和短信签名。

2、使用例子：

```
use MessagesSender;

class HomeController extends Controller
{
    public function home()
    {
        $demo = new MessagesSender();

        $response = $demo::sendSms(
            "短信签名", // 短信签名
            "SMS_*******", // 短信模板编号
            "15602******", // 短信接收者
            Array(  // 短信模板中字段的值
                "name"=>"lichmaker",
                "score"=>"1",
                "code" =>"1234"
            )
        );

        //打印发送成功or失败回调
        print_r($response);
    }
}
```

3、还有更多其他功能将会在以后的更新推出

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![Lichmaker](https://avatars.githubusercontent.com/u/8957712?v=4)](https://github.com/Lichmaker "Lichmaker (10 commits)")

### Embed Badge

![Health badge](/badges/lichmaker-send-message-by-aliyun-for-laravel5/health.svg)

```
[![Health](https://phpackages.com/badges/lichmaker-send-message-by-aliyun-for-laravel5/health.svg)](https://phpackages.com/packages/lichmaker-send-message-by-aliyun-for-laravel5)
```

###  Alternatives

[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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