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)15.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 1mo ago

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 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

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

3338d 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

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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