承接 stern87/yii2-turbosms 相关项目开发

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

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

stern87/yii2-turbosms

最新稳定版本:1.0.4

Composer 安装命令:

composer require stern87/yii2-turbosms

包简介

Yii2 TurboSMS

README 文档

README

Yii2 turbosms

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist integready/yii2-turbosms "*"

or add

"integready/yii2-turbosms": "*"

to the require section of your composer.json file.

Basic setup

You should have registered account at http://turbosms.ua/

Configuration

Add the following in your config:

<?php
...
    'components' => [
        'turbosms' => [
            'class' => 'integready\turbosms\Turbosms',
            'viewPath' => '@app/sms',
            'sender' => 'your_sender',
            'login' => 'your_login',
            'password' => 'your_password',
        ],
        ...
    ],
...

If you want test sms in debug mode change config:

<?php
...
    'components' => [
        'turbosms' => [
            'class' => 'integready\turbosms\Turbosms',
            'viewPath' => '@app/sms',
            'sender' => 'your_sender',
            'login' => 'your_login',
            'password' => 'your_password',
            'debug' => true,
        ],
        ...
    ],
...

in debug mode sms not send only add to db table.

Usage

Once the extension is installed, simply use it like a mailer in your code by :

 <?php 
    \Yii::$app->turbosms->compose('test-text', ['data' => $data])
        ->setTo('+380XXXXXXXXX')
        ->send();
 ?>

License

yii2-turbosms is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-08-20