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

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

huangdijia/laravel-sms
======================

sms for laravel

1.1.7(5y ago)27.0k↑88.9%MITPHPPHP &gt;=7.2.0CI failing

Since Mar 10Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (21)Used By (0)

Laravel-sms
===========

[](#laravel-sms)

[![Latest Stable Version](https://camo.githubusercontent.com/2a2ee681fbfa21e85a2601c571dc133a7aa790fe58becc1cd49813f01ecc6cdd/68747470733a2f2f706f7365722e707567782e6f72672f6875616e6764696a69612f6c61726176656c2d736d732f76657273696f6e2e706e67)](https://packagist.org/packages/huangdijia/laravel-sms)[![Total Downloads](https://camo.githubusercontent.com/9bbd5dd83e75678db7be5d63ea9a5e50f45973e2364be63eabd686c2113c0233/68747470733a2f2f706f7365722e707567782e6f72672f6875616e6764696a69612f6c61726176656c2d736d732f642f746f74616c2e706e67)](https://packagist.org/packages/huangdijia/laravel-sms)[![GitHub license](https://camo.githubusercontent.com/e64c5080fefd5a400dd03d21d594e33124ae511db627ab314128f8bc197767bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6875616e6764696a69612f6c61726176656c2d736d73)](https://github.com/huangdijia/laravel-sms)

Installation
------------

[](#installation)

### Install package

[](#install-package)

```
composer require huangdijia/laravel-sms
```

Install configure
-----------------

[](#install-configure)

```
php artisan sms:install
```

Uage
----

[](#uage)

Simple to send a message
------------------------

[](#simple-to-send-a-message)

```
use Huangdijia\Sms\Facades\Sms;

Sms::to('phone number')->content('message content')->send();
```

### Check send result

[](#check-send-result)

```
$response = Sms::to('phone number')->content('message content')->send();

if ($response->successful()) {
    // success
}
```

### Throwing Exceptions

[](#throwing-exceptions)

```
$response = Sms::to('phone number')->content('message content')->send();

$response->throw();
```

### Switch sms factory

[](#switch-sms-factory)

```
Sms::use('another')->to('phone number')->content('message content')->send();
```

### With Validate Rules

[](#with-validate-rules)

```
Sms::withRules([
    'to'      => 'required|numeric|....',
    'content' => 'required|...',
], [
    'to.required'      => ':attribute cannot be empty!',
    'content.required' => ':attribute cannot be empty!',
    // more messages
])->to()->content()->send();
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~14 days

Total

20

Last Release

2041d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8337659?v=4)[Deeka Wong](/maintainers/huangdijia)[@huangdijia](https://github.com/huangdijia)

---

Top Contributors

[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (22 commits)")

---

Tags

laravelsms

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M153](/packages/spatie-laravel-health)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[nativephp/mobile

NativePHP for Mobile

1.0k55.0k85](/packages/nativephp-mobile)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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