承接 fduch2k/yii-sms-manager 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

fduch2k/yii-sms-manager

Composer 安装命令:

composer require fduch2k/yii-sms-manager

包简介

Yii Component for sending SMS with gateway balancing and events for low balance alert

README 文档

README

This extension allows you setup several sms gateway with built-in balance watching and low balance or sending problems notification.

Instalation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist fduch2k/yii-sms-manager "*"

or add

"fduch2k/yii-sms-manager": "*"

to the require section of your composer.json.

Configuration

To use this extension, you have to configure the Connection class in your application configuration:

return array(
    //....
    'components' => array(
        'sms' => array(
            'class'=>'TSSmsManager',
            'alertPhone'=>'mobile phone number for sending sms with notification',
            'alertEmail'=>'email for sending notification',
            'gateways'=>array(
                array(
                    'class'=>'TSAtomParkGateway',
                    'sender'=>'senderid1',
                    'username'=>YOUR_USERNAME,
                    'password'=>YOUR_PASSWORD,
                ),
                array(
                    'class'=>'TSSmsFeedBackGateway',
                    'sender'=>'senderid2',
                    'username'=>YOUR_USERNAME,
                    'password'=>YOUR_PASSWORD,
                ),
            ),
        ),
    )
);

Usage

This code will send 2 sms to $phoneNumber1 - 'Hello, Alex. Your password is qwerty' and $phoneNumber2 - 'Hello, Peter! Your password is 123456'

Yii::app()->sms->send(
    array(
        array(
            $phoneNumber1=>array('Alex', 'qwerty'), 
            $phoneNumber2=>array('Peter', '123456')
        )
    ), 
    'Hello, %1%! Your password is %2%'
);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固