PHPackages                             ouarea/chuanglan-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. [HTTP &amp; Networking](/categories/http)
4. /
5. ouarea/chuanglan-sms

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ouarea/chuanglan-sms
====================

SMS service implementation with chuanglan as backend

2.0.2(9y ago)25.1kproprietaryPHP

Since Aug 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/linojiang268/chuanglan-sms)[ Packagist](https://packagist.org/packages/ouarea/chuanglan-sms)[ RSS](/packages/ouarea-chuanglan-sms/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (5)Used By (0)

SMS Service
===========

[](#sms-service)

Use APIs exposed by Chuanglan to implement SMS-related service, which includes sending SMS, checking quota/surplus, etc.

This service provides only the most basic features, and designated to be integrated into other project as infrastructure.

```
use Ouarea\Sms\Chuanglan\Service as ChuanglanSmsService;

$service = new ChuanglanSmsService('account', 'password');
// - or the full version
// $service = new ChuanglanSmsService('account', 'password', $optionsOfService, $instanceOfClient);

// send message
$service->send('message', $subscriber, $optionsOfMessage);
// query quota
$quota = $service->queryQuota();
```

API
---

[](#api)

### construct

[](#construct)

`__construct($account, $password, array $options = [], $httpClient = null)`

- `$account` chuanglan's account used to send message
- `$password` password that goes with account, should be **MD5**'d
- `$options` options for creating a ChuanglanSmsService. Including:
    - `name` name of merchant(e.g., 【XXX】), can be either prepend or append to the message.
    - `affix` 附加号码 a part of sender's number that will be used to
    - `send_url` url for sending message (typically, you will not change it at all, since there is no other environment prepared by chuanglan currently)
    - `quota_url` url for querying quota (typically, you will not change it at all, since there is no other environment prepared by chuanglan currently)
- `$httpClient ` GuzzleHttp client instance

### send message

[](#send-message)

`send($message, $subscriber)`

- `$message` message to deliver
- `$subscriber` subscriber or a list of subscribers

### query quota

[](#query-quota)

`queryQuota()`

No argument, and it returns the surplus of your account.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

4

Last Release

3395d ago

Major Versions

1.0.5 → 2.0.12017-03-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/df7ccab559c431cbc9d5270a71e6d871257e439a7319be7172d09f5c77d6888a?d=identicon)[linojiang268](/maintainers/linojiang268)

---

Top Contributors

[![linojiang268](https://avatars.githubusercontent.com/u/4715533?v=4)](https://github.com/linojiang268 "linojiang268 (10 commits)")

### Embed Badge

![Health badge](/badges/ouarea-chuanglan-sms/health.svg)

```
[![Health](https://phpackages.com/badges/ouarea-chuanglan-sms/health.svg)](https://phpackages.com/packages/ouarea-chuanglan-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.1k39](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M7.0k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[guzzlehttp/test-server

Node.js server and PHP controller

14284.0k22](/packages/guzzlehttp-test-server)

PHPackages © 2026

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