定制 abhi1693/yii2-sms 二次开发

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

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

abhi1693/yii2-sms

最新稳定版本:v2.0.0

Composer 安装命令:

composer require abhi1693/yii2-sms

包简介

Send Free Sms for Yii2

README 文档

README

Gratipay User Dependency Status Latest Stable Version Total Downloads Latest Unstable Version License

Yii2-Sms sends free messages using Swift Mail

Documentation

Installation

This document will guide you through the process of installing Yii2-Sms using composer.

Download using composer

$ php composer.phar require abhi1693/yii2-sms 2.0.0

Or Add Yii2-Sms to the require section of your composer.json file:

{
    "require": {
        "abhi1693/yii2-sms": "2.0.0"
    }
}

And run following command to download extension using composer:

$ php composer.phar update

Basic Usage

Valid Carriers

  • AT&T
  • Boost Mobile
  • Cingular
  • Metro PCS
  • Nextel
  • Sprint
  • T-Mobile
  • Verizon
  • Virgin Mobile

Usage

$sms = new Sms();

$sms->transportType    = 'php'; // php/smtp
$sms->transportOptions = [
        'host'       => 'smtp.gmail.com',     // Other domains can also be used
        'username'   => 'your@gmail.com',
        'password'   => '******',
        'port'       => '465',
        'encryption' => 'ssl'
    ];
$carrier = "T-Mobile";
$number = "0123456789";
$subject = "Subject";
$message = "Message";
$sms->send($carrier, $number, $subject, $message);

How to contribute?

Contributing instructions are located in CONTRIBUTING.md file.

License

Yii2-sms is released under the MIT License. See the bundled LICENSE for details.

统计信息

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

GitHub 信息

  • Stars: 17
  • Watchers: 3
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-25