PHPackages                             lysice/laravel-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. [API Development](/categories/api)
4. /
5. lysice/laravel-sms

ActiveLibrary[API Development](/categories/api)

lysice/laravel-sms
==================

a alibaba sms service for laravel.

294.9k[1 issues](https://github.com/Lysice/laravel-sms/issues)PHP

Since Jul 8Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

欢迎使用 laravel-sms 阿里云短信扩展包
=========================

[](#欢迎使用-laravel-sms-阿里云短信扩展包)

[![Latest Stable Version](https://camo.githubusercontent.com/29b437ab6fe9abc5c19ba9e584e50eba55bef607fbc25ec662c7b4b7229df013/68747470733a2f2f706f7365722e707567782e6f72672f4c79736963652f6c61726176656c2d736d732f762f737461626c65)](https://packagist.org/packages/Lysice/laravel-sms)[![Total Downloads](https://camo.githubusercontent.com/c30c58fd702e035394ff1d6e9cf80d425a6d0a81c6c75e4c39da1275b8a97866/68747470733a2f2f706f7365722e707567782e6f72672f4c79736963652f6c61726176656c2d736d732f646f776e6c6f616473)](https://packagist.org/packages/Lysice/laravel-sms)[![Latest Unstable Version](https://camo.githubusercontent.com/5895ae79159d6db8ff15712c7a9b75a19344f1569c407fb9f207797c20f835d8/68747470733a2f2f706f7365722e707567782e6f72672f4c79736963652f6c61726176656c2d736d732f762f756e737461626c65)](https://packagist.org/packages/Lysice/laravel-sms)[![License](https://camo.githubusercontent.com/3dbe367ec5eb9415053cde465a663086f16f1cfb0422397954c73a17310e3139/68747470733a2f2f706f7365722e707567782e6f72672f4c79736963652f6c61726176656c2d736d732f6c6963656e7365)](https://packagist.org/packages/Lysice/laravel-sms)

laravel-sms 是专门为laravel开发的阿里云短信的发送包。由于官方扩展包包含了太多内容 所以写了这个扩展包。

#### 安装

[](#安装)

```
composer require lysice/laravel-sms

```

#### 配置

[](#配置)

配置文件中需要配置以下几个参数 `access_secret_id`
`access_secret_key``message_template_code //模板``message_template //模板文本``sign_name // 短信模板签名`

#### 1.laravel

[](#1laravel)

config/app.php中注册服务提供器 添加下面一行

```
        \Lysice\Sms\SmsServiceProvider::class

```

##### 执行命令发布配置文件

[](#执行命令发布配置文件)

```
    php artisan vendor:publish --provider="Lysice/Sms/SmsServiceProvider"

```

#### 2.lumen

[](#2lumen)

##### bootstrap/app.php中配置服务:

[](#bootstrapappphp中配置服务)

```
    $app->register(\Lysice\Sms\SmsServiceProvider::class);

```

##### 拷贝laravel-sms/config下sms.php到项目中config目录。若无config目录则创建。

[](#拷贝laravel-smsconfig下smsphp到项目中config目录若无config目录则创建)

#### 使用

[](#使用)

```
    // 自定义参数,参数为你的消息模板中的变量。 如 我的模板中为code 则自定义参数为 $templateParam = ['code' => 1234];
    $templateParam = ['code' => 1234];
	$data = ['mobile' => '138xxxxxxxx', 'TemplateParam' => $templateParam];
	SmsFacade::send($data);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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://www.gravatar.com/avatar/6f077a192556cd9c34d866d3a65c0e4ba9d7f3b06403e431f58fd975ac3b7ed9?d=identicon)[Lysice](/maintainers/Lysice)

---

Top Contributors

[![Lysice](https://avatars.githubusercontent.com/u/17869820?v=4)](https://github.com/Lysice "Lysice (11 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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