定制 orajo/sms-zilla 二次开发

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

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

orajo/sms-zilla

Composer 安装命令:

composer require orajo/sms-zilla

包简介

PHP library for sending SMS through various gateways

README 文档

README

Latest Stable Version License

PHP library for sending SMS messages using various gateways. It's simple but flexible. Allows sending for more than one recipient at a time.

Currently supported gateways:

The library can be easily extended to support new gateways or integrated into your application, such as filtering of recipients based on consent to receiving SMS messages.

======

Installation

use composer

{
    "require": {
        "orajo/sms-zilla": "1.*"
    }
}

or

php composer.phar require orajo/sms-zilla

Usage

$smsSender = new SmsZilla\SmsSender(new SmsZilla\Adapter\MockAdapter());

// default validator supports Polish numbers (PL) without country code
// others must be given with + (plus) sign and country code
// adding one recipient
$smsSender->setRecipient('605123456');
// adding more recipients (with and without country code)
$smsSender->setRecipient(['511654321', '48511654987', '+41751654987']);

// Add recipient from other then default country.
// If region is changed then country code (+41) can be ommited.
$smsSender->getValidator()->setDefaultRegion('CH');
$smsSender->setRecipient('987654321');

$smsSender->setText("Message text");
$result = $smsSender->send();

See tests for more examples.

See https://github.com/Orajo/zf-sms-zilla if you need Laminas module for sending SMS. The module is based on this library.

Author

Jaroslaw Wasilewski orajo@windowslive.com.

License

MIT

统计信息

  • 总下载量: 3.71k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 5
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-08-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固