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

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

netjoint/laravel-sms
====================

SMS Component for Laravel 5 - 第三方短信平台客户端

026PHP

Since Sep 14Pushed 10y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

SMS Component for Laravel 5 [简体中文版](README-CN.md)
-------------------------------------------------

[](#sms-component-for-laravel-5-简体中文版)

### Supported SMS Providers

[](#supported-sms-providers)

- [Yimei](http://www.emay.cn/)

### Installation

[](#installation)

Add laravel-sms to your `composer.json` file

```
"require": {
  "netjoint/laravel-sms": "dev-master"
}

```

### Registering the Package

[](#registering-the-package)

#### For Laravel 5.1

[](#for-laravel-51)

Register the service provider within the `providers` array found in `config/app.php`

```
'providers' => array(
    // ...

    NetJoint\LaravelSms\LaravelSmsServiceProvider::class,
)

```

Add an alias within the `aliases` array found in `config/app.php`:

```
'aliases' => array(
    // ...

    'Sms' => NetJoint\LaravelSms\Facades\Sms::class,
)

```

#### For Laravel 5.0

[](#for-laravel-50)

Register the service provider within the `providers` array found in `config/app.php`

```
'providers' => array(
    // ...

    'NetJoint\LaravelSms\LaravelSmsServiceProvider',
)

```

Add an alias within the `aliases` array found in `config/app.php`:

```
'aliases' => array(
    // ...

    'Sms' => 'NetJoint\LaravelSms\Facades\Sms',
)

```

### Configuration

[](#configuration)

Publish the package's config file to `config/laravel-sms.php`

```
php artisan vendor:publish --provider="NetJoint\LaravelSms\LaravelSmsServiceProvider"

```

Add the following to your `.env` file

```
# Default SMS Provider（lowercase）
SMS_PROVIDER=yimei
# Serial key for SMS Provider Yimei
SMS_YIMEI_CDKEY=2SDK-EMY-6688-AAAAA
# Password for SMS Provider Yimei
SMS_YIMEI_PASSWORD=123456

```

### Usage

[](#usage)

```
use NetJoint\LaravelSms\Facades\Sms;

// $mobile  mobile number
// $message SMS message
// return True if success and False if fail
Sms::send($mobile, $message);

```

### Make a Contribution

[](#make-a-contribution)

Place your implementation of `ProviderInterface` in `Provider` under the namespace `NetJoint\LaravelSms\Provider` and then send me pull request.

### Licence

[](#licence)

MIT

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

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

![](https://www.gravatar.com/avatar/6dbf632cc185defbab52a02b36ca604de09f4f6e5955863a3b72bc7e736c7002?d=identicon)[zxzhang5](/maintainers/zxzhang5)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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