Download the PHP package codepower/sms-mitake without Composer
On this page you can find all versions of the php package codepower/sms-mitake. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sms-mitake
sms-mitake-php
A PHP client for the Mitake (三竹簡訊) SMS HTTP API.
Covers single send, bulk send, delivery-status and balance queries, cancellation of scheduled messages, and parsing the delivery-receipt callback.
Requirements
- PHP >= 8.1
- ext-curl
- ext-mbstring (only if you send using the Big5 charset)
Installation
Usage
By default the client talks to https://smsapi.mitake.com.tw using UTF-8. Pass a
Charset and/or base URL to the constructor to change either, and inject your own
Http\HttpClient to customise transport or for testing.
Send one message
Optional fields — scheduling, validity, a delivery-receipt callback URL, and a de-duplication client id:
Send in bulk (up to 500)
Each bulk message must carry a clientId:
Check length & segments
Estimate how a body will be billed and split before sending. GSM extension
symbols (^ { } \ [ ~ ] | €) count as two characters, and any non-GSM character
(Chinese, emoji, …) switches the whole message to the UCS-2 tier:
Per-segment sizes are the carrier standard: 160/153 for GSM, 70/67 for UCS-2.
Query delivery status / balance
Cancel scheduled messages
Handle the delivery-receipt callback
Mitake calls your callbackUrl with the latest status. Parse the request and
reply with the acknowledgement body so Mitake stops retrying:
Security
Bulk send credentials travel in the URL. SmBulkSend carries its record
payload as the request body, so Mitake requires the username and password in
the URL query string (every other call sends them in the POST body). TLS protects
them in transit, but query strings are routinely written to access logs and
proxies. Make sure any HTTP request logging on your side does not capture full
Mitake URLs for sendBulk calls. This library never includes the request URL in
its exception messages.
Testing
License
MIT © CodePower Ltd. — applies to this library's own source code.
The Mitake API specification bundled under docs/ is © Mitake Inc.
(三竹資訊股份有限公司), all rights reserved, and is redistributed from Mitake's
public download page for
convenience. It is not covered by the MIT license.
All versions of sms-mitake with dependencies
ext-curl Version *