承接 alexeevdv/yii2-sms 相关项目开发

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

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

alexeevdv/yii2-sms

最新稳定版本:1.0.1

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.3k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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