PHPackages                             overtrue/laravel-easy-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. overtrue/laravel-easy-sms

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

overtrue/laravel-easy-sms
=========================

overtrue/easy-sms service provider for Laravel.

v4.0.0(3mo ago)314.4k↓66.7%21MITPHPPHP ^8.3CI passing

Since Dec 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/overtrue/laravel-easy-sms)[ Packagist](https://packagist.org/packages/overtrue/laravel-easy-sms)[ RSS](/packages/overtrue-laravel-easy-sms/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (9)Dependencies (8)Versions (11)Used By (1)

Laravel EasySMS
===============

[](#laravel-easysms)

[overtrue/easy-sms](https://github.com/overtrue/easy-sms) service provider for Laravel.

[![Laravel Octane Ready Status](https://camo.githubusercontent.com/1c218651cdc2c4d1b4e72a61bf34ce269474c7322d1e463f615e513789626afa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f6374616e63652d72656164792d677265656e3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1c218651cdc2c4d1b4e72a61bf34ce269474c7322d1e463f615e513789626afa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f6374616e63652d72656164792d677265656e3f7374796c653d666c61742d737175617265)[![GitHub release (latest SemVer)](https://camo.githubusercontent.com/fa0556f475270d51c9705bd317268eb4b365b3f41ac7c51c527777c82ecc356d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6f766572747275652f6c61726176656c2d656173792d736d733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/fa0556f475270d51c9705bd317268eb4b365b3f41ac7c51c527777c82ecc356d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6f766572747275652f6c61726176656c2d656173792d736d733f7374796c653d666c61742d737175617265)[![GitHub License](https://camo.githubusercontent.com/4a1eaeff5b57ee86435240ff4a798a44d09066bf0a8134567d5dd126b8369a3b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f766572747275652f6c61726176656c2d656173792d736d733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/4a1eaeff5b57ee86435240ff4a798a44d09066bf0a8134567d5dd126b8369a3b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f766572747275652f6c61726176656c2d656173792d736d733f7374796c653d666c61742d737175617265)[![Packagist Downloads](https://camo.githubusercontent.com/b351c388d930c783a9b71058ea82805f0914398c2c3f45f4847fe466a51a5e96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f766572747275652f6c61726176656c2d656173792d736d733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/b351c388d930c783a9b71058ea82805f0914398c2c3f45f4847fe466a51a5e96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f766572747275652f6c61726176656c2d656173792d736d733f7374796c653d666c61742d737175617265)

[![Sponsor me](https://github.com/overtrue/overtrue/raw/master/sponsor-me-button-s.svg?raw=true)](https://github.com/sponsors/overtrue)

Installing
----------

[](#installing)

```
$ composer require overtrue/laravel-easy-sms
```

Usage
-----

[](#usage)

*config/services.php*

```
    'easy-sms' => [
        // HTTP 请求的超时时间（秒）
        'timeout' => 5.0,

        // 默认发送配置
        'default' => [
            // 网关调用策略，默认：顺序调用
            'strategy' => \Overtrue\EasySms\Strategies\OrderStrategy::class,

            // 默认可用的发送网关
            'gateways' => [
                'yunpian', 'aliyun',
            ],
        ],
        // 可用的网关配置
        'gateways' => [
            'errorlog' => [
                'file' => '/tmp/easy-sms.log',
            ],
            'yunpian' => [
                'api_key' => env('EASY_SMS_YUNPIAN_API_KEY'),
            ],
            'aliyun' => [
                'access_key_id' => env('EASY_SMS_ALIYUN_KEY_ID'),
                'access_key_secret' =>  env('EASY_SMS_ALIYUN_API_KEY'),
                'sign_name' => '',
            ],
            //...
        ],
    ],
```

Send a message:

```
app('easy-sms')->send(13188888888, [
    'content'  => '您的验证码为: 6379',
    'template' => 'SMS_001',
    'data' => [
        'code' => 6379
    ],
]);
```

[More...](https://github.com/overtrue/easy-sms)

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/overtrue/laravel-easy-sms/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/overtrue/laravel-easy-sms/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

[![Sponsor me](https://github.com/overtrue/overtrue/raw/master/sponsor-me.svg?raw=true)](https://github.com/sponsors/overtrue)

Project supported by JetBrains
------------------------------

[](#project-supported-by-jetbrains)

Many thanks to Jetbrains for kindly providing a license for me to work on this and other open-source projects.

[![](https://camo.githubusercontent.com/3cf726e7cdadba47755b7f7ea4227945a92a2fa48aadf4a2573140ec6501c989/68747470733a2f2f7265736f75726365732e6a6574627261696e732e636f6d2f73746f726167652f70726f64756374732f636f6d70616e792f6272616e642f6c6f676f732f6a625f6265616d2e737667)](https://www.jetbrains.com/?from=https://github.com/overtrue)

PHP 扩展包开发
---------

[](#php-扩展包开发)

> 想知道如何从零开始构建 PHP 扩展包？
>
> 请关注我的实战课程，我会在此课程中分享一些扩展开发经验 —— [《PHP 扩展包实战教程 - 从入门到发布》](https://learnku.com/courses/creating-package)

License
-------

[](#license)

MIT

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance86

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~241 days

Recently: every ~289 days

Total

9

Last Release

99d ago

Major Versions

1.1.0 → 2.0.02022-02-15

2.3.0 → 3.0.02025-07-28

3.0.0 → v4.0.02026-03-20

### Community

Maintainers

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

---

Top Contributors

[![overtrue](https://avatars.githubusercontent.com/u/1472352?v=4)](https://github.com/overtrue "overtrue (24 commits)")[![hihuangwei](https://avatars.githubusercontent.com/u/3166799?v=4)](https://github.com/hihuangwei "hihuangwei (3 commits)")[![hedeqiang](https://avatars.githubusercontent.com/u/31909061?v=4)](https://github.com/hedeqiang "hedeqiang (1 commits)")

---

Tags

laravelsmssms-client

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

591.7k1](/packages/crumbls-layup)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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