Download the PHP package ouarea/chuanglan-sms without Composer
On this page you can find all versions of the php package ouarea/chuanglan-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ouarea/chuanglan-sms
More information about ouarea/chuanglan-sms
Files in ouarea/chuanglan-sms
Download ouarea/chuanglan-sms
More information about ouarea/chuanglan-sms
Files in ouarea/chuanglan-sms
Vendor ouarea
Package chuanglan-sms
Short Description SMS service implementation with chuanglan as backend
License proprietary
Package chuanglan-sms
Short Description SMS service implementation with chuanglan as backend
License proprietary
Please rate this library. Is it a good library?
Informations about the package chuanglan-sms
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.
API
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 tosend_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, $subscriber)
$message
message to deliver$subscriber
subscriber or a list of subscribers
query quota
queryQuota()
No argument, and it returns the surplus of your account.
All versions of chuanglan-sms with dependencies
PHP Build Version
Package Version
The package ouarea/chuanglan-sms contains the following files
Loading the files please wait ....