PHPackages                             koala-gc/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. koala-gc/sms

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

koala-gc/sms
============

A sms SDK

1.2(5y ago)0161MITPHP

Since Apr 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gongcheng121/sms)[ Packagist](https://packagist.org/packages/koala-gc/sms)[ RSS](/packages/koala-gc-sms/feed)WikiDiscussions master Synced 6d ago

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

 sms
=====

[](#-sms-)

 发送短信 SDK.

Installing
----------

[](#installing)

```
$ composer require koala-gc/sms
```

Usage
-----

[](#usage)

```
$config=[
            'default'=>[
                'gateways' => [
                    'huyi'
                ],
            ],
            'log'=>storage_path('smslog'),
            'gateways'=>[
                'huyi'=>[
                    'account'=>'***',
                    'password'=>'***'
                ],
                'dianxin'=>[
                    'access_token'=>'***',
                    'token_secret'=>'***',
                ]
            ]
        ];

//不使用短信模板
    $res = $sms->send('$mobile','您的验证码是：123456 。 请不要把验证码泄露给其他人。',['huyi']);
//使用短信模板
    $res = $sms->send('$mobile',['content'=>'您的验证码是：123456 。 请不要把验证码泄露给其他人。','template'=>'123'],['huyi']);

```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/koala/sms/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/koala/sms/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

3

Last Release

1844d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f9883a94947823cdfe3ac47a99fa86536c9c087ca0e0c4cee19017b08afef17?d=identicon)[gongcheng121](/maintainers/gongcheng121)

---

Top Contributors

[![gongcheng121](https://avatars.githubusercontent.com/u/5101485?v=4)](https://github.com/gongcheng121 "gongcheng121 (7 commits)")

### Embed Badge

![Health badge](/badges/koala-gc-sms/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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