PHPackages                             oh86/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. oh86/laravel-sms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

oh86/laravel-sms
================

sms for laravel

v1.0.0(10mo ago)0221MITPHPPHP ^7.4 || ^8.0

Since Jun 16Pushed 10mo agoCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (1)

短信发送
====

[](#短信发送)

### 一、安装

[](#一安装)

```
composer require oh86/laravel-sms
php artisan vendor:publish

# 可选
composer require tencentcloud/sms
```

### 二、配置

[](#二配置)

```
return [
    'default' => env('SMS_DEFAULT_DRIVER', 'tencentCloudApp1'),

    'drivers' => [
        //
        'tencentCloudApp1' => [
            'service' => 'tencentCloud', // 腾讯云短信服务

            // 云平台配置
            'platform' => [
                'secretId' => env('TENCENT_CLOUD_SECRET_ID'),
                'secretKey' => env('TENCENT_CLOUD_SECRET_KEY'),
                'region' => env('TENCENT_CLOUD_REGION', 'ap-guangzhou'),
            ],
            // 应用配置
            'app' => [
                'appId' => env('TENCENT_CLOUD_SMS_APP_ID'),
                'sign' => env('TENCENT_CLOUD_SMS_SIGN'),
                'templateId' => env('TENCENT_CLOUD_SMS_TEMPLATE_ID'),
            ]
        ],
    ],
];
```

### 三、使用示例

[](#三使用示例)

```
SMS::send(['15014153877', '15014153878'], ['123456']);

SMS::driver('tencentCloudApp1')->send(['15014153877', '15014153878'], ['123456']);
```

### 四、拓展

[](#四拓展)

#### 1.拓展`service`

[](#1拓展service)

```
app()->get(\Oh86\SMS\SMSManager::class)->extendService('serviceDemo', function ($app): \Oh86\SMS\Services\SMSServiceInterface {
    // TODO
});
```

#### 2.拓展`driver`

[](#2拓展driver)

```
app()->get(\Oh86\SMS\SMSManager::class)->extend('driverDemo', function ($app): \Oh86\SMS\Services\SMSServiceInterface {
    // TODO
});
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance53

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community8

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

329d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c3f893211000acbd1a600e2159a778865e4f7e54661239721c9fb5c240d7626b?d=identicon)[oh86](/maintainers/oh86)

---

Top Contributors

[![OneHundred86](https://avatars.githubusercontent.com/u/22148561?v=4)](https://github.com/OneHundred86 "OneHundred86 (8 commits)")

### Embed Badge

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

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

PHPackages © 2026

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