PHPackages                             code-lives/chuanglan - 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. code-lives/chuanglan

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

code-lives/chuanglan
====================

this is chuanglansmsapi

v3.0(4y ago)17341MITPHP

Since Apr 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/code-lives/chuanglan)[ Packagist](https://packagist.org/packages/code-lives/chuanglan)[ RSS](/packages/code-lives-chuanglan/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

### 使用说明

[](#使用说明)

```
$clapi = new \Chuanglan\ChuanglanSmsApi($config);
$code = mt_rand(1000, 9999);
$string = '【创蓝科技】您好！验证码是:' . $code;
//设置您要发送的内容：其中“【】”中括号为运营商签名符号，多签名内容前置添加提交
$result = $clapi->sendSMS($phone, $string, true);
if (!is_null(json_decode($result))) {
  $output = json_decode($result, true);
  if (isset($output['code']) && $output['code'] == '0') {
    return array('status' => true, 'msg' => '发送成功');
  } else {
    return array('status' => false, 'msg' => '发送失败');
  }
} else {
  return array('status' => false, 'msg' => '发送失败');
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Total

3

Last Release

1714d ago

Major Versions

1.0 → 2.02021-06-16

2.0 → v3.02021-09-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/66c8ab94602f8fde6cbb339ec8b9b0dbd178b1aeab8973d957e3903d14e2b7be?d=identicon)[code-lives](/maintainers/code-lives)

---

Top Contributors

[![code-lives](https://avatars.githubusercontent.com/u/79346591?v=4)](https://github.com/code-lives "code-lives (12 commits)")

### Embed Badge

![Health badge](/badges/code-lives-chuanglan/health.svg)

```
[![Health](https://phpackages.com/badges/code-lives-chuanglan/health.svg)](https://phpackages.com/packages/code-lives-chuanglan)
```

PHPackages © 2026

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