定制 benmorel/clickatell 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

benmorel/clickatell

最新稳定版本:0.1.0

Composer 安装命令:

composer require benmorel/clickatell

包简介

Client library for the Clickatell SMS gateway

README 文档

README

A simple library to send SMS through the Clickatell SMS gateway.

Clickatell supports two character encodings: 7-bit (up to 160 characters per message) and Unicode (up to 70 characters per message). The choice of the encoding directly influences the number of credits debited when sending an SMS.

This library automatically handles character set conversion, using 7-bit whenever possible and switching to Unicode only when required. This guarantees a perfect delivery of the original message, while minimizing credit consumption.

Basic usage

$client = new Clickatell\ClickatellClient('api-id', 'username', 'password');
$client->authenticate();
$client->send('441234567890', 'Hello world');

The authenticate() call is required once, whether you need to send() one or several SMS messages.

The phone numbers must be in E.164 international format: country code + national number without 0 prefix. They must not include a leading + sign.

The message must use the UTF-8 charset.

Sender ID

If you registered a sender ID with Clickatell, you can specify it when instantiating the library:

$client = new Clickatell\ClickatellClient('api-id', 'username', 'password', 'sender-id');

It will then automatically be used for every send() call. Alternatively, you can pass it to every call individually:

$client->send('441234567890', 'Hello world', 'sender-id');

统计信息

  • 总下载量: 14.43k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固