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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sms-mitake

sms-mitake-php

Latest Version Total Downloads License CI Security

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

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

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package codepower/sms-mitake contains the following files

Loading the files please wait ...