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 3w 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 41% 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

1890d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5101485?v=4)[gongcheng121](/maintainers/gongcheng121)[@gongcheng121](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)

PHPackages © 2026

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