PHPackages                             rocketyang/phpsms - 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. rocketyang/phpsms

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

rocketyang/phpsms
=================

sms send library for php, support the main SMS service provider.

0.1.4(10y ago)080MITPHPPHP &gt;=5.4.0

Since Nov 13Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (7)Used By (0)

YiiSms
======

[](#yiisms)

yii2与phpsmshttps://github.com/toplan/phpsms 相结合。

支持的服务商有:

服务商模板短信内容短信语音验证码最低消费最低消费单价[Luosimao](http://luosimao.com)noyesyes￥850(1万条)￥0.085/条[云片网络](http://www.yunpian.com)noyesyes￥55(1千条)￥0.055/条[容联·云通讯](http://www.yuntongxun.com)yesnoyes充值￥500￥0.055/条[SUBMAIL](http://submail.cn)yesnono￥100(1千条)￥0.100/条[云之讯](http://www.ucpaas.com/)yesnoyes￥0.050/条安装
==

[](#安装)

```
```
composer require 'rocketyang/phpsms:dev-master'
```

```

快速上手
====

[](#快速上手)

### 1. Yii配置

[](#1-yii配置)

```
可以作为component组件加载到yii2现有的components;

```
sms => [

    'class' => 'Toplan\PhpSms\YiiSms',

    'agentsName' => [
        'YunPian' => '1 backup',
        'Luosimao' => '0 backup'
    ],

    'agentsConfig' => [
        'YunPian' => [
            'apikey' => '122222343434324d2f17f8aa201611785a'
        ],

        'Luosimao' => [
            'apikey' => '3068537108b2xxxxxx71ba9e'
        ]
    ]
];

```

```

### 2. 超简单的语法糖

[](#2-超简单的语法糖)

```
```
$sms = Yii::$app->get('sms');
$sms->send('13798164261', 'hello【云片网】');
```

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Every ~2 days

Total

6

Last Release

3819d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ccf4e339b91e06601dfd719a37ce02bb57bb7d08b4a74cae7c0a2798d844470?d=identicon)[rocketyang](/maintainers/rocketyang)

---

Top Contributors

[![toplan](https://avatars.githubusercontent.com/u/7815594?v=4)](https://github.com/toplan "toplan (29 commits)")

---

Tags

smsphp-smsphpsmssms library for php

### Embed Badge

![Health badge](/badges/rocketyang-phpsms/health.svg)

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

###  Alternatives

[php-smpp/php-smpp

PHP-based SMPP client lib

234197.5k8](/packages/php-smpp-php-smpp)[instasent/sms-counter-php

SMS Counter PHP Class Library which detects encoding of an SMS message text, counts the characters as per the encoding and gives page limit information.

491.3M4](/packages/instasent-sms-counter-php)[alexandr-mironov/php-smpp

PHP SMPP client lib, fork of onlinecity/php-smpp

4864.3k](/packages/alexandr-mironov-php-smpp)[benmorel/gsm-charset-converter

Converts GSM 03.38 strings to and from UTF-8

16423.5k](/packages/benmorel-gsm-charset-converter)[matthewbdaly/sms-client

A generic SMS client library. Supports multiple swappable drivers.

2291.2k2](/packages/matthewbdaly-sms-client)[midnite81/geolocation

A laravel package which wraps the IP Info DB and IP2Location Services

3624.1k](/packages/midnite81-geolocation)

PHPackages © 2026

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