PHPackages                             qufo/medusms - 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. qufo/medusms

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

qufo/medusms
============

漫道短信发送

313PHP

Since Aug 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/qufo/Medusms)[ Packagist](https://packagist.org/packages/qufo/medusms)[ RSS](/packages/qufo-medusms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Medusms
=======

[](#medusms)

漫道SMS

漫道短信发送包

installation
------------

[](#installation)

For install this package Edit your project's `composer.json` file to require qufo/medusms

```
"require": {
    "qufo/medusms": "dev-master"
},
```

Now, update Composer:

```
composer update

```

Once composer is finished, you need to add the service provider. Open `app/config/app.php`, and add a new item to the providers array.

```
'Qufo\Medusms\MedusmsServiceProvider',

```

Next, add a Facade for more convenient usage. In `app/config/app.php` add the following line to the aliases array:

```
'Medusms'=> 'Qufo\Medusms\Facades\Medusms',

```

Publish config files:

```
php artisan config:publish qufo/medusms

```

to change sn, pwd,ext,sign and other configuration change `app/config/packages/qufo/medusms/config.php`

Usage
-----

[](#usage)

first, get sn,pwd from medusms provider.

then fill the config.php file

```
return array(
    'sn'    => 'SDK-', //your sn
    'pwd'   => '',     //password for sn
    'ext'   => '',     // ext no
    'sign'  => '',     //your signature like 【MyCompany】
    'host'  => 'sdk2.entinfo.cn' //service host .
);
```

### Send Message

[](#send-message)

```
Medusms::send('13800138000', 'I am here!'); // send message to 13800138000

Medusms::send('13800138000,13800138001','Hi, your two'); // send message to 13800138000 and 13800138001
```

the send method return a rrid,it's a string build with numbers.

### Get Balance

[](#get-balance)

```
Medusms::getBalance(); // return your balance.
```

安装
--

[](#安装)

首选，编辑你项目的 `composer.json` 文件，加入 qufo/medusms 到 require 段

```
"require": {
    "qufo/medusms": "dev-master"
},
```

然后，更新:

```
composer update

```

一旦 composer 更新完成, 需要修改 service provider.打开 `app/config/app.php`, 在 providers 数组中加入一个新的项目.

```
'Qufo\Medusms\MedusmsServiceProvider',

```

接下来，加入 Facade，在 `app/config/app.php` 的 aliases 段中加入以下行：

```
'Medusms'=> 'Qufo\Medusms\Facades\Medusms',

```

发布配置文件:

```
php artisan config:publish qufo/medusms

```

变更用户帐号，密码，扩展码，签名信息等，更改 `app/config/packages/qufo/medusms/config.php`

使用方法
----

[](#使用方法)

首先，从短信提供商那里获得用户帐号密码等并进行注册。

然后，将信息填入配置文件 `app/config/packages/qufo/medusms/config.php`

```
return array(
    'sn'    => 'SDK-', //帐号
    'pwd'   => '',     //密码
    'ext'   => '',     //扩展码
    'sign'  => '',     //签名 【我的公司】
    'host'  => 'sdk2.entinfo.cn' //接受服务的主机
);
```

### 发送短信

[](#发送短信)

```
Medusms::send('13800138000', 'I am here!'); // 发送短信到 13800138000

Medusms::send('13800138000,13800138001','Hi, your two'); // 发送短信给 13800138000 和 13800138001
```

返回值 rrid ，是一组数字组成的字符串。

### 取短信条数余额

[](#取短信条数余额)

```
Medusms::getBalance(); // 返回余额
```

and enjoy it .

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

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/698b2d269e00d66c3da9e7747c87afb66cbacad61293a71923b265b1c8ef8ab4?d=identicon)[qufo](/maintainers/qufo)

---

Top Contributors

[![qufo](https://avatars.githubusercontent.com/u/2526883?v=4)](https://github.com/qufo "qufo (6 commits)")

### Embed Badge

![Health badge](/badges/qufo-medusms/health.svg)

```
[![Health](https://phpackages.com/badges/qufo-medusms/health.svg)](https://phpackages.com/packages/qufo-medusms)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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