girnarsoft/sms-services

此包最新版本(1.1.6)没有提供许可信息。

1.1.6 2019-06-24 09:07 UTC

This package is auto-updated.

Last update: 2024-09-08 13:05:11 UTC


README

配置sms API

php composer.phar require --prefer-dist wbraganca/yii2-dynamicform "*"

这是SMS模块的主模块类。

## 使用SMS模块,将其作为模块包含在应用程序配置中,如下所示

return [ 'bootstrap' => ['sms-config'], 'modules' => [ 'sms-config' => ['class' => 'gitnarsoftsms\Module'], ], ]

## 使用以下代码发送短信

\gitnarsoftsms\Sms::sendSms(string $slug, array $data)

## 设置配置提示的Use {your key}在表头数据表单中用于动态值

示例

键 | 值 |

mobile | {mobile} |

msg | {message} |

以上配置后,您可以通过URL http://www.example.com/index.php?r=sms-config 在浏览器中访问SmsModule

如果您的应用程序启用了 [[\yii\web\UrlManager::enablePrettyUrl|美观URL]],您可以通过以下URL访问Gii: http://www.example.com/index.php/sms-config

@作者 Tirthraj Singh tirthraj.singh@girnarsoft.com @since 2.0