PHPackages                             phwoolcon/sms-agent - 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. phwoolcon/sms-agent

ActiveLibrary

phwoolcon/sms-agent
===================

SMS Sending Agent

0311PHP

Since Jun 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/phwoolcon/sms-agent)[ Packagist](https://packagist.org/packages/phwoolcon/sms-agent)[ RSS](/packages/phwoolcon-sms-agent/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

sms-agent
=========

[](#sms-agent)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7c6f29604aa446707c439d05b9c0c64d214573b9f413d8e6a2bbc25d9460923e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068776f6f6c636f6e2f736d732d6167656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phwoolcon/sms-agent)[![Software License](https://camo.githubusercontent.com/f9a2da5664498a2a168a000b85719b4e5a61b6df8aae02cca978ef2580f8b1dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/5c9788f33a954afd23f373d228b91cfc7b981ec9985c9da76b97c43b3204248a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068776f6f6c636f6e2f736d732d6167656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/phwoolcon/sms-agent)[![Coverage Status](https://camo.githubusercontent.com/2d29f71150a411a86d8fdc1cb6f9e652e93a7ee521bf878a30716498235dec28/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7068776f6f6c636f6e2f736d732d6167656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/phwoolcon/sms-agent/code-structure)[![Quality Score](https://camo.githubusercontent.com/757cd56559da47bb4f213bb3f3355fcfda484d93663329f2277685eb83239c3c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7068776f6f6c636f6e2f736d732d6167656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/phwoolcon/sms-agent)[![Total Downloads](https://camo.githubusercontent.com/3309b951b0792c2065cc5a06c034bf6c54c055652de3102304053b21e216f426/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068776f6f6c636f6e2f736d732d6167656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phwoolcon/sms-agent)

SMS Sending Agent

1. Install
----------

[](#1-install)

Install as a `phwoolcon` package

```
git clone git@github.com:phwoolcon/bootstrap.git sms-agent
cd sms-agent
bin/import-package git@github.com:phwoolcon/sms-agent.git
```

2. Usage
--------

[](#2-usage)

### 2.1. Sending SMS

[](#21-sending-sms)

#### 2.1.1 Get Sender Account

[](#211-get-sender-account)

Access the sender's website and create an account before use this software.

List of senders:

- sms-cn: [云信 sms.cn](http://www.sms.cn/)

#### 2.1.2. Configure

[](#212-configure)

Create production config, choose the default sender(`sms-cn` by default), and fill up the sender account info:

```
cp app/config/sms-agent.php app/config/production/sms-agent.php
vim app/config/production/sms-agent.php
```

#### 2.1.3. Compose and Send

[](#213-compose-and-send)

```
use SmsAgent;

$mobile = '13579246801';
$content = 'Test message';

SmsAgent::send($mobile, $content)
```

### 2.2. Self Hosted Agent

[](#22-self-hosted-agent)

You can build a self hosted agent to centralize SMS sending stubs for all your applications, with package `phwoolcon/sms-agent-admin`.

3. Change log
-------------

[](#3-change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

4. Contributing
---------------

[](#4-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

5. Security
-----------

[](#5-security)

If you discover any security related issues, please email  instead of using the issue tracker.

6. Credits
----------

[](#6-credits)

- [Christopher CHEN](https://github.com/Fishdrowned)
- [All Contributors](../../contributors)

7. License
----------

[](#7-license)

The Apache License, Version 2.0. Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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/9a771a09625b9c0c75a947abb753f4c992bd4b402c73dda78560f0958b2a4f00?d=identicon)[Fishdrowned](/maintainers/Fishdrowned)

---

Top Contributors

[![Fishdrowned](https://avatars.githubusercontent.com/u/3423411?v=4)](https://github.com/Fishdrowned "Fishdrowned (12 commits)")

### Embed Badge

![Health badge](/badges/phwoolcon-sms-agent/health.svg)

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

PHPackages © 2026

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