PHPackages                             weiwait/dcat-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. weiwait/dcat-easy-sms

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

weiwait/dcat-easy-sms
=====================

快捷配置短信通知

1.0.2(4y ago)111203[1 issues](https://github.com/weiwait/dcat-easy-sms/issues)MITPHPPHP &gt;=7.1.0

Since Sep 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/weiwait/dcat-easy-sms)[ Packagist](https://packagist.org/packages/weiwait/dcat-easy-sms)[ Docs](https://github.com/weiwait/dcat-easy-sms)[ RSS](/packages/weiwait-dcat-easy-sms/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Dcat Admin Extension
====================

[](#dcat-admin-extension)

### 演示地址

[](#演示地址)

[demo: http://dcat.weiwait.cn (admin:admin)](http://dcat.weiwait.cn/admin/demo-distpickers/create "user: admin psw: admin")

### 依赖扩展

[](#依赖扩展)

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

### 通过 composer 安装扩展

[](#通过-composer-安装扩展)

```
  composer require weiwait/dcat-easy
```

### 通过选项卡使用

[](#通过选项卡使用)

```
    public function index(Content $content): Content
    {
        $tab = Tab::make();
        $tab->add('短信', new \Weiwait\DcatEasySms\Forms\SmsConfig());

        return $content->title('配置')
            ->body($tab->withCard());
    }
```

### 通知

[](#通知)

```
class SomeNotification extends Notification
{
    public function via()
    {
        return [\Weiwait\DcatEasySms\Channels\EasySmsChannel::class];
    }

    public function toEasySms($notifiable)
    {
        return [
            'to' => $notifiable,
            'template' => 'SMS_000001',
            'content' => '免模板消息内容',
            'data' => [
                'code' => '模板消息变量${code}'
            ]
        ]
    }
}
```

### 可通知模型

[](#可通知模型)

```
class User extends Model
{
    use Notifiable;

    public function routeNotificationForEasySms($notifiable)
    {
        return $this->phone;
    }
}

class SomeNotification extends Notification
{
    public function via()
    {
        return [\Weiwait\DcatEasySms\Channels\EasySmsChannel::class];
    }

    public function toEasySms($notifiable)
    {
        return [
            'template' => 'SMS_000001',
            'data' => [
                'code' => '模板消息变量${code}'
            ]
        ]
    }
}
```

### 发送通知

[](#发送通知)

```
Notification::send('15626326950', new SomeNotification());

(new User())->nofity(new SomeNotification());
```

### 示例图片

[](#示例图片)

[![示例图片](https://github.com/weiwait/images/raw/main/dcat-sms.png?raw=true)](https://github.com/weiwait/images/blob/main/dcat-sms.png?raw=true)[![示例图片](https://github.com/weiwait/images/raw/main/dcat-sms-ext-setting.png?raw=true)](https://github.com/weiwait/images/blob/main/dcat-sms-ext-setting.png?raw=true)

### Donate

[](#donate)

[![示例图片](https://github.com/weiwait/images/raw/main/donate.png?raw=true)](https://github.com/weiwait/images/blob/main/donate.png?raw=true)

### Dcat-admin 扩展列表

[](#dcat-admin-扩展列表)

1. [单图裁剪](https://github.com/weiwait/dcat-cropper)
2. [区划级联+坐标拾取](https://github.com/weiwait/dcat-distpicker)
3. [smtp快速便捷配置](https://github.com/weiwait/dcat-smtp)
4. [sms channel 快速便捷配置](https://github.com/weiwait/dcat-easy-sms)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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 ~24 days

Total

3

Last Release

1658d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74e0a539fde4f31941cf773ea8504fa105f6c48dd8d3665c3f5ea13304c82292?d=identicon)[weiwait](/maintainers/weiwait)

---

Tags

smsextensiondcat admin

### Embed Badge

![Health badge](/badges/weiwait-dcat-easy-sms/health.svg)

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

###  Alternatives

[sparkinzy/dcat-marketplace

Dcat扩展市场

381.3k](/packages/sparkinzy-dcat-marketplace)

PHPackages © 2026

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