scaytrase / symfony-websms-bundle

WebSMS发送传输桥接器

2.0 2016-05-03 07:09 UTC

This package is auto-updated.

Last update: 2024-08-26 04:20:24 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

Monthly Downloads Daily Downloads

这是实现WebSMS发送服务的scaytrase/symfony-sms-interface的网桥,用于WebSMS,使用此绑定

功能

可用

  • 单条消息发送
  • Http(表单)和JSON驱动程序
  • 每次发送后可从连接中提取余额

计划中

  • 批量消息发送
  • 发送者别名(目前库中不支持)

安装

可以通过composer安装此包

composer.json

composer require scaytrase/symfony-websms-bundle:~1.0

app/AppKernel.php

通过将包包含到应用程序内核中(AppKernel.php)来启用此包

$bundles = array(
    //....
    new ScayTrase\Utils\WebSMSBundle\WebSMSBundle(),
    //....
    );

配置

目前,包只包含底层库的基本属性。它们可以按以下方式配置(示例和默认值)

web_sms:
    connection:
        login:  null # Login is required to send messages.
        secret: null # Tech secret or account password (both work) is required to send messages
        mode: 0 # 0 is for production mode. 1 is for testing mode (valid credentials required). -1 is for debug purpose (credentials not needed, sending does not occures, valid credentials not required)