alexeevdv/yii2-sms 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

alexeevdv/yii2-sms

Composer 安装命令:

composer require alexeevdv/yii2-sms

包简介

This extension allows SMS sending via different SMS providers

README 文档

README

Build Status codecov PHP 5.6 PHP 7.0 PHP 7.1 PHP 7.2 PHP 7.3 PHP 7.4

This extension allows SMS sending via different SMS providers

Installation:

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist alexeevdv/yii2-sms "~1.0"

or add

"alexeevdv/yii2-sms": "~1.0"

to the require section of your composer.json.

Configuration:

use alexeevdv\sms\provider\SmsRuProvider;
use alexeevdv\sms\Sms;

//...
   'components' => [
       'sms' => [
           'class' => Sms::class,
           'provider' => [
               'class' => SmsRuProvider::class,
               'apiId' => '123456789',
           ],
       ],
   ],
//...

Usage:


$result = Yii::$app->sms->send('1234567890', 'Hi there!');

Supported providers:

  • sms.ru

    Class: \alexeevdv\sms\provider\SmsRuProvider Params:

    • apiId - Your api ID from sms.ru
  • smsc.ru

    Class: \alexeevdv\sms\provider\SmscRuProvider Params:

    • login - Your login from smsc.ru
    • psw - Your plain text or MD5 hashed password from smsc.ru

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-12-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固